Comments (3)
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.
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.
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)
- Implementation of try/catch from custom tasks in v2.0 HOT 2
- Consistency of TaskSpec._run_hook() return value HOT 5
- Access to Multi Instance task index from task in v2.0.0rc0 with bpmn:loopCardinality HOT 5
- Stalled gateway <+> with incoming condition (v2.0.0rc0) HOT 2
- Fix error message for missing start event HOT 2
- BpmnParser.find_all_specs() breaks with nested subprocess HOT 1
- SpiffWorkflow.bpmn.parser.ValidationException.ValidationException: No DMN Diagram available with id "None", Available DMN ids are: product_prices. HOT 1
- Support conditional events
- remove Box from the script engine enviroments
- Spiffworkflow Library - State Transitions HOT 3
- Update documentation HOT 1
- Cycle timer child task doesn't inherit parent task data HOT 2
- Workflow with endless cycle timer boundary event never completes HOT 2
- first cycle of cycle timer executes immediately HOT 2
- Error "IllegalMonthError: bad month number 13; must be 1-12" on Boundary Cycle Timer 1 month
- Figure out how to keep the example repo in sync wth this one
- Workflow Prematurely Ends After Timer Start Event in SpiffWorkflow v3.0.0rc2 HOT 2
- Type in the releast notes. HOT 1
- Multiple Inputs to a Task HOT 1
- Workflow gets bogged down when a task has too many children HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spiffworkflow.