Call Workflow Via Business Rule.

ersureshbe
Giga Sage
Giga Sage

Hi Experts,

I am trying to call Workflow from Business Rule. The BR has written for incident table. Please refer the below BR. Can you please help to resolve any syntax error or code error?

 

var wrkflw=new Workflow();
//wrkflw.initialize();
wrkflw.startFlow(wrkflw.getWorkflow('Call WF toBR'),current,current.operation());

 

Regards,

Suresh Loganathan.

Regards,
Suresh.
4 REPLIES 4

Bhagya Lakshmi
Mega Guru

Hello

Please go through following link it may be help full to you.

Workflow

 

Thanks.

Kaka Nayeem
Tera Guru

Hi Suresh

   I have re-corrected piece of your code.

   I should be wflw.getWorkflowFromName();

   wrkflw.startFlow(wflw.getWorkflowFromName('Call WF toBR'),current,current.operation());

 

Thanks & Regards,

Kaka Nayeem

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.

Thanks Nayeem / Bhagya. It Worked. 

 

I have one more query. In the Workflow, I have used "RUN SCRIPT" and mentioned many functions into it.

Is it anyway to call only one function from workflow via Business Rule. Please advise.

 

Regards,

Suresh Loganathan. 

Regards,
Suresh.

ersureshbe
Giga Sage
Giga Sage

Thanks Nayeem / Bhagya. It Worked. 

 

I have one more query. In the Workflow, I have used "RUN SCRIPT" and mentioned many functions into it.

Is it anyway to call only one function from workflow via Business Rule. Please advise.

 

Regards,

Suresh Loganathan

Regards,
Suresh.