Is that possible to get oid of WfProcess in workflow or using pbo if posible you can share those java lines in reply
ObjectIdentifier oid = ObjectIdentifier.newObjectIdentifier("wt.workflow.engine.WfProcess:60318");
Try this. "ecn" is my change notice I passed in as the primary business object.
wt.fc.QueryResult result2=wt.workflow.engine.WfEngineHelper.service.getAssociatedProcesses(ecn,null,ecn.getContainerReference());
while (result2.hasMoreElements())
{
WfProcess process=(WfProcess)result2.nextElement();
Hi avillanueva,
I want to know that can we customise our ootb "save as" action with any event or utility ,
Requirement : I have one custom attribute on doc and on "save as" I have to create a WTPart and number will be that attr. value and then want to create a describe link between doc and part.
And if there is any another way to handle this then please update here.
Hi @@_1647,
I wanted to follow up with you on your post to see if your question has been answered.
If so, please mark the appropriate reply as the Accepted Solution.
Of course, if you have more to share on your issue, please let the Community know so that we can continue to help you.
Thanks,
Anurag
Hi @_1647
If you know the OID then you can use NmOid object to get the final object
OID is id of the object based on OR:TYPE:NUMBER
usually you can see this information in a address link
in your case you need to add the 'OR:' or 'VR:' depends what identification you have object reference or version reference.
NmOid workOid = new NmOid("OR:wt.workflow.engine.WfProcess:60318");
Object perstObject = workOid .getReferencedIterationObject();
if (persObject instanceof WfProcess)
{
// retype to WfProcess and work with this object
WfProcess process = (WfProcess)perstObject;
}
PS> you can build the OID from the object. you know the ID TYPE and add the OR:
Hope this can help
PetrH
Ok Thank you.