How to pass the parameter dynamically while starting Appian Processes from RPA console ?

Good Day Experts,

Can any one please explain how to pass the robotic process variables dynamically when we are invoking start Appian method?

I'm able to pass the initial value but i would like to pass that dynamically. Please let me know if you need more details on this.

Thanks in advance.

Cheers,

Kalai.

  Discussion posts and replies are publicly visible

Parents Reply
  • You can create Robotic Process Variables. You can create them in the Robotic Process Configuration page, and then dynamically set them during your process execution. Checkout the MS Outlook or Browser Scraper Robotic Processes on the App Market. These processes make use of Dynamic Robotic Process Variables. 

    Please reference the pictures below of the Robotic Process Configuration Page:

    Please see the Java code example: 

    private void setLowCodeVariables(List<String> documentIds){
    Map<String,IRobotVariable> workflowVariables = server.getWorkflowVariables();

    // string array
    workflowVariables.get("documentIds").setValue(documentIds.toArray());

    // strings
    workflowVariables.get("emailBody").setValue(currentItem.getBody());
    workflowVariables.get("fromEmail").setValue(currentItem.getSenderEmailAddress());
    workflowVariables.get("fromName").setValue(currentItem.getSenderName());
    workflowVariables.get("subject").setValue(currentItem.getSubject());
    }

Children