CA Service Management

 View Only
Expand all | Collapse all

How can i set workflow task status to SKIP based on Properties values entered by User in Change Order?

  • 1.  How can i set workflow task status to SKIP based on Properties values entered by User in Change Order?

    Posted Feb 12, 2024 05:29 AM

    Hello Developers,

    We have attached our workflow in the category and  based on properties values on change order form we have to skip certain workflow task after approval of some workflow task. How can we achieve this?

    Thanks

    Ankit



  • 2.  RE: How can i set workflow task status to SKIP based on Properties values entered by User in Change Order?

    Posted Feb 20, 2024 04:48 PM

    Hello,

    I understand that you want to skip certain workflow tasks based on the properties values on the change order form.

    you can use the EPM-set-task-result-to-property function to set the result of a workflow task to a property value. You can then use the flowlines to customize the workflow based on the property value. For example, you can set the flowlines to skip a task if the property value is "Yes" or to execute a task if the property value is "No". Alternatively, you can use a query that looks at the property value on the target and sets the result of the task to "true" or "false" accordingly.

    Create a property that will store the result of the workflow task. For example, you can create a property called "SkipTask" with a boolean data type.
    Create a workflow task that will set the property value based on the user input or the business logic. For example, you can create a task called "SetSkipTask" that will ask the user to enter "Yes" or "No" for skipping the next task.
    Add the EPM-set-task-result-to-property function to the task. You can do this by editing the task and adding the function to the "Post Action" section.

    This above is half-solution another half-solution I will provide when you tell me if half work or not work...

    Best regard,
    BookerE1




  • 3.  RE: How can i set workflow task status to SKIP based on Properties values entered by User in Change Order?

    Posted Feb 20, 2024 04:49 PM
    Edited by Jason McClellan Feb 21, 2024 06:02 PM

    Hello, Be Ball Players

    You can use conditional expressions or rules to evaluate the properties values and determine which tasks to skip. For example, if you are using CA Service management, you can create a macro that checks the properties values and sets the status of the selected tasks to skip. You can attach the macro to the workflow task that precedes the tasks that you want to skip, and trigger it on approval. 

    Also you can use variables or parameters to store the properties values and pass them to the workflow tasks.