0 votes
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.6k points)
edited by

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();
tw.system.model.findProcessAppByName("PA2").findSnapshotByName("snapShotName").findProcessByName("BPD2").startNew(inputs, false)

Related questions

0 votes
1 answer 749 views
0 votes
1 answer 219 views
+1 vote
1 answer 779 views
0 votes
2 answers 971 views
0 votes
1 answer 267 views
0 votes
1 answer 242 views
asked May 20, 2016 in BPD by anonymous
+1 vote
2 answers 2.3k views
0 votes
0 answers 107 views
0 votes
1 answer 342 views
0 votes
1 answer 656 views

613 questions

493 answers


2.0k users

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