Comments (2)
Cycle timer children are not created until the timer actually fires, so that's why the tasks don't appear immediately as they would with normal start events. This a change from previous versions of spiff (it was reported as a bug in #370).
After you complete the placeholder start task, the BPMN start task enters a waiting state, and only after the first cycle passes will the remainder of the tasks be created. Once you start running the workflow, the tasks should appear and be runnable.
After running the first task workflow.get_next_task(state=TaskState.READY).run()
you should see
92238ae1-92db-4c36-994d-c55b30838c97/0: Task of Start (BPMN Task) State: COMPLETED Children: 1
5bca361b-15c6-4dab-b635-13b1cdc2a3cf/0: Task of StartEvent_1 (Timer Start Event) State: WAITING Children: 0
After 10 seconds, refresh the waiting tasks (workflow.refresh_waiting_tasks()
)
92238ae1-92db-4c36-994d-c55b30838c97/0: Task of Start (BPMN Task) State: COMPLETED Children: 1
5bca361b-15c6-4dab-b635-13b1cdc2a3cf/0: Task of StartEvent_1 (Timer Start Event) State: WAITING Children: 1
7b883521-0a0a-4568-872e-c84962b501ec/0: Task of Activity_1n1t0x1 (Manual Task) State: READY Children: 1
a8ca6bdd-c4a1-473c-8f6e-469f9c9422fe/0: Task of Event_1e0ho54 (Default End Event) State: FUTURE Children: 1
9363b60d-baad-454e-871f-7cbe2f51b597/0: Task of Process_YzA9iBf.EndJoin (BPMN Task) State: FUTURE Children: 1
8c550ef8-d0eb-4056-a518-ea04ce6cc19a/0: Task of End (BPMN Task) State: FUTURE Children: 0
Arguably, it might be better to create one branch of tasks in a FUTURE state and mark them as READY when the timer completes, but I'm not sure how easy that would actually be (and what potential issues it could cause).
from spiffworkflow.
Works for me, thank you for the clarification @essweine
from spiffworkflow.
Related Issues (20)
- Intermediate Boundary Error and Custom Service Task with v2.0.0rc0 HOT 5
- 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
- Type in the releast notes. HOT 1
- Multiple Inputs to a Task HOT 1
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.