Adding an existing activity to a workflow

 
 
 

All the activities that can be used in a workflow are defined in the applicationContext-workflow-customizations.xml file. You can add a pre-existing activity and customize a workflow.

Adding an existing activity into an existing workflow

You can customize the account activation workflow to include the activity verifyDepositActivity for that account type. The verifyDepositActivity is an available pre-existing activity.

Workflow definition for credit-card-account-activation workflow before addingverifyDepositActivity:
<Workflow name="credit-card-account-activation">      <Bucket name="identity-verification" order="1">        <Activity name="verifyMasterUserEmailActivity" ref="verifyMasterUserEmailActivity"/>      </Bucket>      <Bucket name="billing-verification-and-accounts-creation" order="2">        <Activity name="collectCreditCardInfoActivity" ref="collectCreditCardInfoActivity"/>        <Activity name="createOSSAccountActivity" ref="createOSSAccountActivity"/>      </Bucket>        </Workflow>  
Workflow definition for credit-card-account-activation workflow after adding verifyDepositActivity:
<Workflow name="credit-card-account-activation">      <Bucket name="identity-verification" order="1">        <Activity name="verifyMasterUserEmailActivity" ref="verifyMasterUserEmailActivity"/>      </Bucket>      <Bucket name="billing-verification-and-accounts-creation" order="2">        <Activity name="collectCreditCardInfoActivity" ref="collectCreditCardInfoActivity"/>        <Activity name="createOSSAccountActivity" ref="createOSSAccountActivity"/>        <Activity name="verifyDepositActivity" ref="verifyDepositActivity"/>      </Bucket>        </Workflow>  
The activity is added to Bucket(Phase) 2 of the workflow.

If required, the activity can be added either to any existing phase or to a new phase in the workflow.

Note: If the activity creates an approval task then make sure that there is a template of type "approval" available in the email_templates table. The template name must be of structure as shown below:
TASK_<UPPERCASE OF BUSINESS_TRANSACTION type which triggers the workflow>_<UPPERCASE of TASK type)   For example: TASK_TENANTSTATECHANGE_FINANCE_APPROVAL.  

To add a new template, refer to Customizing Task Templates.

 
Tem mais dúvidas? Submeter um pedido

Comentários

 
Adding comment, please wait....

Provide Feedback on Article:

Subject:
Comments:*
Powered by Zendesk