Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
10 replies
Subscribers
7 subscribers
Views
5087 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Administration
Is there a function I can use to identify which Appian instance a process is run
paule
over 9 years ago
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
0
mohammedz
Certified Senior Developer
over 9 years ago
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
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
mohammedz
Certified Senior Developer
over 9 years ago
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
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data