Aras Community
Search
User
Site
Search
User
Blogs
English
German
Japanese
Forums
Applications
Community
Development
Getting Started
Integrations
Aras Labs
Community Projects
Submit a Community Project
More
Cancel
Replies
4 replies
Subscribers
10 subscribers
Views
8528 views
Users
0 members are here
Workflow state
WF
State
Options
Share
More
Cancel
Related
Get WF State programmatically
オフライン
Mahmoud
6 年以上前
Hello all I have a problem to get the state of Workflow of an Item. I can get the state of lifecycle but do not know how to get the WF-State? Any hint which can help me? Thanks Mahmoud
Parents
オフライン
Zahar Chernov
6 年以上前
replace {itemID} with the id of your Item Item wfObj = this.getInnovator().newItem("Workflow", "get"); wfObj.setAttribute("select", "keyed_name, source_type(name, keyed_name), source_id,related_id(*)"); wfObj.setProperty("source_id", {itemID}); wfObj = wfObj.apply(); Item wfpObj = (!wfObj .isError()) ? wfObj .getRelatedItem() : null;
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Reply
オフライン
Zahar Chernov
6 年以上前
replace {itemID} with the id of your Item Item wfObj = this.getInnovator().newItem("Workflow", "get"); wfObj.setAttribute("select", "keyed_name, source_type(name, keyed_name), source_id,related_id(*)"); wfObj.setProperty("source_id", {itemID}); wfObj = wfObj.apply(); Item wfpObj = (!wfObj .isError()) ? wfObj .getRelatedItem() : null;
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Children
No Data