GithubHelp home page GithubHelp logo

Comments (3)

knipknap avatar knipknap commented on July 21, 2024

I agree that the documentation is very unclear regarding this point. A better way to say it is:

complete_all() completes all tasks in accordance to the specification, until no further tasks are READY for being executed.
Note that this does not mean that the workflow is completed after calling complete_all(), since some tasks may be WAITING, or may be blocked by another WAITING task, for example.

Does this answer your question?

from spiffworkflow.

jayste avatar jayste commented on July 21, 2024

Makes sense... My issue is that I am copy pasting this task spec from the tutotial: https://github.com/knipknap/SpiffWorkflow/blob/master/doc/tutorial/nuclear.json

Running complete_all() will complete the workflow even though some are defined as manual tasks with workflow_aborted getting trigger.

How would I adjust the tutorial so that it would wait for the manual input on the exclusive choice?

from spiffworkflow.

knipknap avatar knipknap commented on July 21, 2024

Good question... there is currently no built-in "complete_all_except_manual()" yet. Currently the only way to do this is to use iterate over the tasks, similar to how complete_next() is implemented:

https://github.com/knipknap/SpiffWorkflow/blob/master/SpiffWorkflow/workflow.py#L211

Except you'd need to check the "manual" flag before calling complete() on the task.

from spiffworkflow.

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.