I'm writing the simple example that you suggested.
Sorry for my previous response. I don't understanded your question. Now I try to explain better the step from the PaperSupplay Workflow to the OrderRequest Workflow.
The activity Test.PaperSupplaying.ReqestOreder, is:
Kind: Implementation,
Impl. alternative: Subflow,
Impl. Type: Asynchr
Subflow reference: Test.OrderRequest
So, when the engine process this activity:
- it make a copy of the document (Form PaperSupplying)
- in the new document set ActivityID to the id of the start activity of the Test.OrderRequest workflow
- also set InstanceID to a new ID
- the status to DW_Activity_WBegin
- and compute the performer.
When this job is complete the Test.PaperSupplaying.ReqestOreder activity end without waiting the termination of the new Test.OrderRequest workflow.
Now in the application database we can find a new document that follow the rules of the Test.OrederRequest workflow.
The Test.PaperSupplaying.UrgentRequestOrder is very similar but with Impl. Type: Synchr it wait for the new OrderRequest to complete.
I think that the confusion is due to my choice to use only one form for two workflows. The PaperSupplying form contain all the fields needed for PaperSupplaying and OrderRequest workflows. The second table appear only in the OrderRequest workflow.
I hope my explanation clarify your doubt.