One form, Two workflow types

I need to create two workflows to use on the Sales orders form; one for Sales order approval, and another for credit limit approval in case of a credit limit conflict. i will add the latter as a subworkflow of the first.

however i can only choose one workflow type on the form design. is that a mandatory step? or can i skip it for the sub-workflow type?

any other suggestions are appreciated.

Hi Rola,

Have you figured out how to deal with this scenario?

I have similar problems to solve and I have no idea how to give multiple workflowType names to the SalesTable form property now.

Thank you,

Kwen

Hi Rola,

I believe that you can use the following code to achieve your requirement.

The below code must be written in init() method of the form.

if (conditionA)

{

element.design().workflowType(‘WFType1’);

}

else

{

element.design().workflowType(‘WFType2’);

}

Hi Kwen,

I believe that you can use the following code to achieve your requirement.

The below code must be written in init() method of the form.

if (conditionA)

{

element.design().workflowType(‘WFType1’);

}

else

{

element.design().workflowType(‘WFType2’);

}