Automic Workload Automation

Expand all | Collapse all

Post process in JOBP

  • 1.  Post process in JOBP

    Posted 4 days ago
    Hello experts,

    Is there any way to include some code to call the API in the POST PROCESS of the workflow (JOBP). Seems like we do not have the POST PROCESS tab in the workflow.

    We have a use case wherein we call API to trigger the job and get the details from CALL BACK API.
    For that, workflow should be complete (ENDED_OK) to get the status (So we need to execute the API code after the POST PROCESS of the workflow (JOBP)

    Please let us know for any suggestions.


  • 2.  RE: Post process in JOBP

    Posted 3 days ago
    Edited by Beck 3 days ago
    This is just off the top of my head.  I haven't tested these.

    1. Have a script at the end of the workflow use activate_uc_object with start time lagged by a minute or so (do not use WAIT) to check the status,  You can pass the runnid of the workflow
    2. Probably easier.  Put the workflow in another workflow and have a follow up task check the status of the workflow run as the previos task). in fact you could use the dependency logic to check the ended ok of the workflow task and the next job can execute your api code if I read correctly on what your are trying to do.