cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Is that possible to get oid of WfProcess in  workflow or using pbo

@_1647
13-Aquamarine

Is that possible to get oid of WfProcess in  workflow or using pbo

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");

5 REPLIES 5
avillanueva
22-Sapphire II
(To:@_1647)

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();

 

@_1647
13-Aquamarine
(To:avillanueva)

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
 

HelesicPetr
22-Sapphire I
(To:@_1647)

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

@_1647
13-Aquamarine
(To:HelesicPetr)

Ok Thank you.

Announcements


Top Tags