Maximo Integration

 View Only
  • 1.  Continue a workflow using script

    Posted Mon May 09, 2022 09:28 AM
    Hi All,

    I would like to know is it possible to create an automation script that will process the workflow to the next node from some Input Node?
    So far I only found article that can process this in Task node.

    This is the script that I use for Task Node
    assignmentSet = mx.getMboSet("WFASSIGNMENT",ui);
    assignmentSet.setWhere(" WFASSIGNMENTID = " + str(mbo.getLong("WFASSIGNMENTID")));
    assignment = assignmentSet.moveFirst();
    #positive flow
    MXServer.getMXServer().lookup("WORKFLOW").completeAssignment(assignment, "APPROVE  PR", 1);
    # or this for negative flow
    MXServer.getMXServer().lookup("WORKFLOW").completeAssignment(assignment, "REJECT PR ", 0);​

    Can someone tell me how to do this  if the current Node is Input Node that have more than 2 condition?

    Thank you

    muhammad rizal

  • 2.  RE: Continue a workflow using script

    Posted Tue May 10, 2022 08:48 AM
    I don't think I understand the use case. A manual input node indicates a decision to be made by a user. What's the purpose of a manual input node over a conditional node that would just evaluate and proceed?  

    If this is intended for an external UI then you should look at the REST API support we added for this capability. We document how to work with the workflow via REST API at in the Maximo_REST_API_Guide.pdf here:

    Steven Shull

  • 3.  RE: Continue a workflow using script

    Posted Wed May 11, 2022 01:25 AM
    Hi @Steven Shull,

    I don't understand it either , but a request from top. :)  Previously, user will choose the action (Approve, Revise or Reject) using "Route Workflow" action inside Purchase Requisition application.

    But they want to change the process of approval by email, so I change the workflow using "Task" node, "Condition" node and adding some new field to store user response because I don't know how to select the value in "Input" node and continue the workflow, It is work fine. But now they asking to used both, "Route Workflow" and Email, so I change the workflow using 2 "Task" node, first task is to approve, second task is to revise or reject,
    ​But they asking me to keep using "Input" node so user only do the action one time. Do you have any idea how to do this?

    muhammad rizal