0 votes
2.8k 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 (16.3k points)
edited by
https://youtu.be/BJezsIMcOBA

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 1.5k views
0 votes
1 answer 759 views
+1 vote
1 answer 1.5k views
0 votes
2 answers 2.2k views
0 votes
0 answers 1.4k views
0 votes
1 answer 612 views
0 votes
1 answer 660 views
asked May 20, 2016 in BPD by anonymous
0 votes
0 answers 292 views
+1 vote
2 answers 5.1k views
0 votes
0 answers 311 views
0 votes
1 answer 715 views

635 questions

495 answers

98 comments

2.9k users

Join BPM Community Discord Channel

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
...