Is there a function I can use to identify which Appian instance a process is run

Is there a function I can use to identify which Appian instance a process is running in - so that we can have different behaviour in test environments from the production environment?

OriginalPostID-204408

OriginalPostID-204408

  Discussion posts and replies are publicly visible

Parents
  • Hi Paule,

    You can create a Portal Report, passing Main Process Model as context and select check box of include sub process . Add a column in portal report under data tab for task Id. So when ever your flow is running assigned task id's will be logged in portal report.

    You can use QueryProcessAnalytics to get the task id for the Active tasks by passing any Unique Id for your flow.

    This will work only if you have any unique parameter field like caseId, orderId etc...

    (OR)

    getactivetaskidsforprocess . using this function if you pass processId it will return all active task id .. From that task id you can get the Appian Instance name and whatever you want from Portal Reprot
Reply
  • Hi Paule,

    You can create a Portal Report, passing Main Process Model as context and select check box of include sub process . Add a column in portal report under data tab for task Id. So when ever your flow is running assigned task id's will be logged in portal report.

    You can use QueryProcessAnalytics to get the task id for the Active tasks by passing any Unique Id for your flow.

    This will work only if you have any unique parameter field like caseId, orderId etc...

    (OR)

    getactivetaskidsforprocess . using this function if you pass processId it will return all active task id .. From that task id you can get the Appian Instance name and whatever you want from Portal Reprot
Children
No Data