How to call flow designer from workflow ?

Haceena Shaik
Tera Expert

Hi all,

 

Is it possible to call flow designer from workflow and passing parameters from workflow to flow designer. Does Code snippet in flow designer is the only way?

 

Regards,

Nithya

3 REPLIES 3

Community Alums
Not applicable

Hi @Haceena Shaik ,

 Please follow this Article : Calling Flow designer from Workflow When using both workflow and flow designer for service catalog 

Also, 

you can try to use executeAction(action name, inputs) from workflow run script

how to trigger flow or subflow or action from script; check below link

Scripting with Flows, Subflows, and Actions

Community Alums
Not applicable

Hi @Haceena Shaik ,

 

Shariq Azim
Kilo Guru

In case of Sub flow

(function() {

// ... code ...
try {

var flw = 'name_of _the_flow'

var inputs = {};
inputs['param1'] = 'value_of _param1';
inputs['param2'] = 'value_of _param2' //optional;

// Start Asynchronously: Uncomment to run in background.
/var results = sn_fd.FlowAPI.getRunner().flow('global.' + flw).inBackground().withInputs(inputs).run();

current.flow_context = results.getContextId();

} catch (ex) {
var message = ex.getMessage();
gs.error(message);
}


})();