Hello Expert,
I've an urgent request, I need to perform promote feature of LC on multiple objects.
I've implemented the action on these particular object type to promote the objects from different states, the entire business logic is working for single as well as multiple documents.
The only issue now is that we need to present message ( i.e. success or failure ) to users, this isn't possible because the CPPromote execution mentioned below is extended from IActionExecution, IReturnListener and is executed seperately for every object selected in multi select process.
What I need is, if certain documents from selection list are promoted then I need to display success message for them together and all the failure objects message also on failure page./
How can I achive this? is there a way to save the execution result in CPPromote so it can be collectively displayed when the final object is processed.
Please suggest.
<!-- Custom Action Definitions -->
<action id="promotecase">
<desc>
Promotes an object to the next lifecycle state.
</desc>
<params>
<param name="objectId" required="true"/>
<param name="lockOwner" required="false"/>
</params>
<preconditions>
<precondition class="com.abc.uspv.actions.CPPromotePrecondition">
</precondition>
<precondition class="com.documentum.webcomponent.library.actions.PromoteAction">
</precondition>
</preconditions>
<execution class="com.abc.uspv.actions.CPPromote">
</execution>
</action>
Regards
Prashant