GithubHelp home page GithubHelp logo

Comments (4)

madzhuga avatar madzhuga commented on June 14, 2024

@dilkhush thanks! As for your questions:

  1. How can we assign an operation to multiple roles?
    You can create new MultipleRolesOperation class like this one, and add 'roles' to it. And then just check if template roles list includes user role.
  2. There are few ways to do it. For example, you can update add #build_operation method in Operation Template - here you will have the only argument - operation, created by this operation template. There you can add code to assign this operation to some specific user or any other.
  3. Not sure what do you mean by re-assign operation to the previous step if the current operation is failed. Can you describe this case in more details?

from rails_workflow.

dilkhush avatar dilkhush commented on June 14, 2024

@madzhuga Thanks for you quick reply
3 point was If I configure a template with 3 operations like A, B, C. B will be in-progress if A is done and C will be in-progress if A and B both are done.
This the success workflow will be A > B > C.
Now My requirement is if B operation got cancel then A should be again in-progress state again.
One more thing in your demo application its not able to find cancel/skip methods in controller so do i need to create cancel/skip action in my application or I am missing any thing ?
I am getting this error "The action 'cancel' could not be found for RailsWorkflow::OperationsController
"

from rails_workflow.

madzhuga avatar madzhuga commented on June 14, 2024

@dilkhush sorry for the delay. You can configure operation A so that it will be created when operation B gets canceled. The most proper way is to re-create completed operation rather than re-open it. I will need to add cancel to operations controller in demo app - looks like I forgot to add it. There is API to cancel operation but may be I missed to add controller action.

from rails_workflow.

dilkhush avatar dilkhush commented on June 14, 2024

@madzhuga Thanks for your reply.
I have one scenario where if the current task is cancel/rejected then I need to restart the flow from a point. Example:

  1. A customer give me a requirement
  2. Marketing Team Accept It
  3. Technical Team Give Efforts
  4. Sales Team Add costs
  5. If Customer Reject that
  6. Reassign to sales team and modified cost assign back to customer
  7. Now if customer say 'Yes' then the flow should go to Technical Team Again to thee 3rd point

In that case I was trying to use the same process but its not effecting here. Can you help me out in the scenario.

from rails_workflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.