Reltio Connect

 View Only
  • 1.  How to start Custom workflow

    This message was posted by a user wishing to remain anonymous
    Posted 22 days ago
    This message was posted by a user wishing to remain anonymous

    Hi Team,

    I have cloned the existing DCR workflow and reused the same classes while adding multiple levels of DCR reviews in BPMN.

    Could you please guide me on the next steps required to ensure this workflow runs automatically whenever a profile is updated in the UI, without manually starting it from RIH?



  • 2.  RE: How to start Custom workflow

    Reltio Employee
    Posted 21 days ago

    Hello

    Out Of The Box (OOTB) version of the DCR workflow process has "id" - dataChangeRequestReview

    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
      <process id="dataChangeRequestReview" name="Data Change Request Review" isExecutable="true">
    

    If your workflow has the same id, you can deploy it to your tenant, and it will override the default version of the DCR workflow. Each time users suggest profile changes in the UI, the updated workflow will be started.



    ------------------------------
    Yury Timofeev
    Product Owner of the Workflow
    Reltio
    ------------------------------



  • 3.  RE: How to start Custom workflow

    This message was posted by a user wishing to remain anonymous
    Posted 20 days ago
    This message was posted by a user wishing to remain anonymous

    Hi Yury,

    Thanks for your response.

    Is there a way that we can access and store other attribute values in Groovy Script. Eg.,

    def entity = execution.getVariable("entity")
     
    def entityType = execution.getVariable("entityType")
    def Status = null
     
    if (entity != null &&
        entity.get("attributes") != null &&
        entity.get("attributes").get("Status") != null &&
        entity.get("attributes").get("Status").size() > 0) {
     
        Status = entity.get("attributes").get("Status").get(0).get("value")
    }
     
    execution.setVariable("entityType", entityType)
    execution.setVariable("Status", Status)