Purpose:
1.1.1. Fork, join (branch/aggregation activity)
This is performed by multiple branches in parallel (at the same time), and all branch executions are executed backward only after the join activity.
I. Flowchart
Ii. Code Implementation
Package COM. njupt. forkandjoin; import Java. io. inputstream; import Org. jbpm. API. configuration; import Org. jbpm. API. processengine; import Org. jbpm. API. processinstance; import Org. JUnit. test; public class processtest {private processengine = configuration. getprocessengine (); @ testpublic void test () throws exception {// 1. the deployment process defines inputstream in = getclass (). getresourceasstream ("test. jpdl. XML "); processengine. getrepositoryservice ()//. createdeployment ()//. addresourcefrominputstream ("test. jpdl. XML ", in )//. deploy (); // 2, START process instance processinstance Pi = processengine. getexecutionservice (). startprocessinstancebykey ("test"); system. out. println ("=>" + pi. findactiveactivitynames ());}}