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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Change Life cycle state of Document using webject?

giridhar82
1-Newbie

Change Life cycle state of Document using webject?

is there any webject available to change life cycle state of an object?

2 REPLIES 2

Hi Giri, Did you try to check out the object and then update the value of the attribute? I have written a webject to update description attribute of ePMDocument. You can use it for other object.

<ie:param name="WHERE" data="number='ObjectNumber"/"> <ie:param name="TYPE" data="wt.epm.EPMDocument"/"> <ie:param name="GROUP_OUT" data="pbo"/">
<ie:param name="ATTRIBUTE" data="number,description" delim=","> <ie:param name="WHERE" data="number='ObjectNumber"/"> <ie:param name="TYPE" data="wt.epm.EPMDocument"/"> <ie:param name="GROUP_OUT" data="epmdocs"/">
<% com.infoengine.object.factory.Group pbo = getGroup("epmdocs"); String checkoutState = (String) pbo.getAttributeValue(0, "number"); System.out.println("stateeeeeee==="+checkoutState); String moddescrip = "Descriptionnnnnnnnnnnn";%>
<ie:webject name="CheckOut-Objects" type="ACT"> <ie:param name="OBJECT_REF" data="${epmdocs[0]obid[0]}"/"> <ie:param name="GROUP_OUT" data="checkedOut"/> </ie:webject>
<ie:webject name="Update-Objects" type="ACT"> <ie:param name="OBJECT_REF" data="${checkedOut[0]obid[0]}"/"> <ie:param name="field" data="description='&lt;%=" moddescrip=" %=">"/></ie:webject>
<ie:webject name="CheckIn-Objects" type="ACT"> <ie:param name="OBJECT_REF" data="${checkedOut[0]obid[0]}"/"> <ie:param name="GROUP_OUT" data="output"/"> </ie:webject>
Hope this helps.ThanksSitanshu

Thanks Sithansu!

Top Tags