简体   繁体   中英

How to call Custom Workflow Activity inside another Custom Workflow Activity

I have a Custom Workflow Activity (A) that does a certain validation a returns a boolean value depending on the result; I want to do the same validation inside another Custom Workflow Activity (B) and, since I'd like to avoid repeating code, I wonder if there is a way for me to call Custom Workflow Activity A inside the code of Custom Workflow Activity B.

Thanks in advance!

You can create a new Action and this action needs to have a step that performs the Workflow Activity B , then you can call this action in your Workflow Activity A by using OrganizationRequest .

Why not share the validation between workflows at the code level?

You can write the validation function once and call it from both workflows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM