Hi there,
We have a content workflow, and are trying to capture the name of the workflow process, but could not. Is there an API that can help getting the name (it is the value that we enter, when we initiate the workflow).
Appreciate any help..
The API to get ProcessName from CI or SF:
ObjectId id = new ObjectId(<40CharObjectID>);
WfOps wfOps = ConfigUtil.getWfOps();
WfProcessBundleFlags wfflag = new WfProcessBundleFlags();
wfflag.setAll();
WfProcessBundle[] bun = wfOps.getProcessBundlesInState(id, WfState.OPEN_RUNNING,wfflag );
for(int i=0;i<bun.length;i++){
System.out.println(bun[i].getName() );
}
I am not able to understand the requirement, at which level you want to capture the name. Share the use-case.
Regards,
Trilochan
From: eLink Entry: Discussion Group - Web Experience Management [mailto:v7webcontentmanagement@elinkkc.opentext.com]Sent: Thursday, July 19, 2018 5:53 AMTo: eLink Recipient <devnull@elinkkc.opentext.com>Subject: API to get Workflow Process Name
API to get Workflow Process Name
Posted bymansoor.haider@metrolinx.com (Haider, Mansoor) On 07/18/2018 04:00 PM
[To post a comment, use the normal reply function]
Forum:
Discussion Group - Web Experience Management
Content Server:
My Support
Thanks a lot Trilochan!!.