Quantcast
Channel: Ariba Exchange: Message List
Viewing all articles
Browse latest Browse all 3363

Re: Adding new state to Eform

$
0
0

You have the right approach, and yes you need to create an action.

 

To move from Approved to Processed, use CreateDurableEvent action, plus any post Approval processing you might need to run. Once you're in Processed state, create another action class to set the Status to Processed. You can get the state name from the.efm file by using the PropertyTable and getPropertyForKey, then set the StatusString.

 

See sample below.

 

<!DOCTYPE workflow SYSTEM "../../../../ariba/server/workflowserver/workflow.dtd">

     <workflow name="CRARequesterMaintenance"

          workflowClass="config.cra.Eform.CRARequesterMaintenance"

          description="Workflow for Requester Maintenance eForm">

 

     <beginState name="BEGIN">

          <transition name="BEGIN_TO_APPROVED">

               <fromState name="BEGIN"/>

               <event type="CRARequesterMaintenance:Approved"/>

               <toState name="APPROVED"/>

          </transition>

     </beginState>

     <state name="APPROVED">

     <entry>

          <action implementation="config.cra.Eform.RequesterMaintenance.action.CRAProcessRequesterMaintenance"></action>

          <action implementation="ariba.common.core.action.CreateDurableEvent">

               <parameter name="EventType" value="CRARequesterMaintenance:Processed"/>

          </action>

     </entry>

     <transition name="APPROVED_TO_PROCESSED">

          <fromState name="APPROVED"/>

          <event type="CRARequesterMaintenance:Processed"/>

          <toState name="PROCESSED"/>

     </transition>

     </state>

     <state name="PROCESSED">

          <entry>

               <action implementation="config.cra.Eform.action.CRASetEformStatus">

                    <parameter name="EformState" value="Processed"/>

               </action>

          </entry>

     </state>

 

</workflow>


Viewing all articles
Browse latest Browse all 3363

Trending Articles