Symantec IGA

 View Only
  • 1.  Identity Manager - Auto change Activite status on Workpoint

    Posted Aug 07, 2020 09:52 AM
    Edited by Felipe Munerato Aug 07, 2020 10:00 AM
    Hello,

    We have a case where we want to auto approve the workflow activity of the Workpoint Designer based on some rules.

    We are able to made this rules from a custom Script. But we not manage to change the activity to a complete state automatically. There is some method that we can call at the custom script to mark the activity as completed?


    Here it's an example of the Workflow:
     

    Reminder: We need to use the Activity and not the Automated or Server Automated nodes, since we need to verify the current approvers of the request on the custom rule.

    Regards


  • 2.  RE: Identity Manager - Auto change Activite status on Workpoint

    Broadcom Employee
    Posted Aug 07, 2020 11:00 AM
    Not sure why you need to validate the approvers if your rules will negate the use of them, but there are many ways to get the answer you are looking for.

    You can have a look at this document:
    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-identity-and-access-management/identity-manager/14-3/administrating/workflow/use-workflow-control-template-method/types-of-participant-resolvers.html#concept.dita_c09c2632ae8cc7a538bdf6c64b41bf0b0dbb6a18_NullResolver

    At the bottom you can use a custom participant resolver to verify your approvers, then based on your rules, use the null resolver and auto-approve.


    Other than this workpoint documentation would be a good place to start:
    C:\Program Files (x86)\CA\Identity Manager\IAM Suite\Identity Manager\tools\Workpoint\docs

    Thanks,
    Bill Patton

    ------------------------------
    And, as always Perhaps there are others in the communities who have experience in doing this and we invite them to comment here also.

    Another option may be to reach out to our partner HCL Technologies to see in what way they can assist further. The Enterprise Studio team of HCL can be reached at enterprisestudio@hcl.com. https://www.hcltech.com/enterprise-studio
    ------------------------------



  • 3.  RE: Identity Manager - Auto change Activite status on Workpoint
    Best Answer

    Posted Aug 07, 2020 11:10 AM
    Edited by Felipe Munerato May 21, 2021 10:40 AM

    Hello William,

    We need to validate the approver because if the list of approvers contains the previous approver we need to auto approve the step.

    I've check the Workpoint documentation and was able to achieve the auto-approve by using the object OrchestrationMan.

    As described on the Workpoint documentation:


    OrchestrationMan provides a way for a script to gather information about itself, such as the name or type of the currently executing script. It also provides a way for Agent scripts which are executing Synchronously to make a request to the Workpoint server to alter certain aspects of the current orchestration. For example, an Agent script executing Synchronously at the Available state can request OrchestrationMan to automatically change the Work Item state to Complete when the script is finished.


    Here it's an example provided by the Workpoint documentation on how to auto-approve:

    importClass(Packages.com.workpoint.common.data.WorkItemConst);
    
    try {
        OrchestrationMan.changeWorkItemState(WorkItemConst.WORK_STATE_OPEN_COMPLETE);
        OrchestrationMan.setCompletionCode(7);
        java.lang.System.out.println("Change state to WORK_STATE_OPEN_COMPLETE approved!");
    } catch (e) {
        // This method will throw a WorkflowException if the requested state is not valid
        java.lang.System.out.println("Error occurred: " + e);
    }


    Thanks for the help.