0 votes
115 views
in Interview Questions by (120 points)
There is a Process App by Name PA1 and having BPD by name BPD1 and another process app by name PA2 and having BPD by name BPD2. How  to start BPD2 from Process app PA1?

3 Answers

0 votes
by (14.6k points)
You can place a UCA in a toolkit and then share the UCA via toolkit across applications.
0 votes
by (820 points)
You can use javascript api tw.system.model.findProcess().startNew(); to start any process from any process app.
0 votes
by (150 points)

// from PA1

var lastSnapshot =tw.system.model.findProcessAppByName("PA2").snapshots.length-1

tw.system.model.findProcessAppByName("PA2").snapshots[lastSnapshot].findProcessByName("BPD2").startNew(new tw.object.Map(), false))

// If you know snapshot name of PA2 you can do

tw.system.model.findProcessAppByName("PA2").findSnapshotByName("snapShotName").findProcessByName("BPD2").startNew(new tw.object.Map(), false)

If BPD2 has input parameters you need to set them before starting the process
var inputs = new tw.object.Map();
inputs.put("paramName1","paramValue1")
inputs.put("paramName2","paramValue2")
tw.system.model.findProcessAppByName("PA2").findSnapshotByName("snapShotName").findProcessByName("BPD2").startNew(inputs, false)

Related questions

0 votes
1 answer 201 views
0 votes
1 answer 81 views
+1 vote
1 answer 387 views
0 votes
2 answers 302 views
0 votes
1 answer 169 views
0 votes
1 answer 99 views
asked May 20, 2016 in BPD by anonymous
+1 vote
1 answer 710 views
0 votes
1 answer 161 views
0 votes
1 answer 138 views

559 questions

454 answers

85 comments

1.7k users

Dosvak IBM BPM /BAW Products, Download Evaluation
Process & Performance Tools Process & Performance Tools
Code Analyzer Code Analyzer
UI Toolkit UI Toolkit
Integration Monitoring Integration Monitoring
Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...