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.1k 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 547 views
0 votes
1 answer 151 views
+1 vote
1 answer 637 views
0 votes
2 answers 694 views
0 votes
1 answer 217 views
0 votes
1 answer 165 views
asked May 20, 2016 in BPD by anonymous
+1 vote
2 answers 1.6k views
0 votes
1 answer 250 views
0 votes
1 answer 450 views

596 questions

485 answers


1.8k 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