Call Subflow in BR

Abc 26
Tera Expert

Hello Experts,

I have created a subflow ,that i am calling in Script include through the below script.

Please help me how to use(call) in the business Rule to fetch the output.

Sample Script Include

dl :function(inputs){
    try{
        var result=sn_fd.FlowAPI.getRunner().subflow('abc.def').inForeground().withInputs(inputs).run();
        var outputs = result.getOutputs();
        return JSON.stringify(outputs);
    }
    catch(ex){
        var message = ex.getMessage();
		return {"error_message":message, "status":"Error"};
    }
}

 

Regards

1 REPLY 1

Maik Skoddow
Tera Patron
Tera Patron

Hi

for me, it looks good. So what exactly is your issue?

to be sure you always can generate the required source at the Flow Designer:

find_real_file.png

Maik