4 Replies Latest reply: Feb 28, 2012 8:05 PM by Cassy Slaven RSS

Is it Possible to re-order the Decision Buttons via XML for the Travel UWL?

Cassy Slaven
Currently Being Moderated

Good morning,  I've searched the UWL forum (and others) on this topic and wasn't able to find an answer for my question, so maybe it isn't possible...On our UWL for Travel we have these decision buttons:

 

APPROVE, REJECT, and RETURN FOR CORRECTION (in that order).  I would like to re-order the buttons to:  APPROVE, RETURN FOR CORRECTION, then REJECT  (I would actually prefer to move the REJECT button to the action buttons line if possible...I haven't tried that yet).

 

I've inserted the following property into my XML code for our task, but it seems to have no effect:

 

<Properties>
    <Property name="display_order_priority" value="5"/>
</Properties>

 

Can anyone help me out?

 

Thanks!

Cassy

  • Re: Is it Possible to re-order the Decision Buttons via XML for the Travel UWL?
    Karri Kemppi
    Currently Being Moderated

    Hi,

     

    Is this a user decision task? It would be more helpful if you posted the whole XML configuration for this task.

     

    Let's say that it is a decision task, then you might be able to change the order by changing the the decision order in the XML. Or perhaps you tried this already. Eventually you might need to change the decision order in the workflow builder in backend - and this might be bigger job or at least you need to be very careful when you do it, since you need to pay attention to the following steps after the decision in the workflow.

     

    Regards,

    Karri

    • Re: Is it Possible to re-order the Decision Buttons via XML for the Travel UWL?
      Cassy Slaven
      Currently Being Moderated

      Hi Karri for your response.  It is a user decision task.  Here is the current XML snippet for this task.  I did change the decision order in the XML, but this also seemed to have no effect.  I will also ask our workflow person to look at the decision order in the workflow builder in backend.  Thanks!

       

      <ItemType name="uwl.task.webflow.decision.TS91000345" connector="WebFlowConnector" defaultView="TravelExpense" defaultAction="DisplayExpenseForm" executionMode="default">
            <ItemTypeCriteria externalType="TS91000345" connector="WebFlowConnector"/>
            <CustomAttributes>
              <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="final">
                <Attribute name="TripNumber" type="string" displayName="Trip Number"/>
                <Attribute name="TravelerCostCenter" type="string" displayName="Cost Object"/>
                <Attribute name="EmployeeNumber" type="string" displayName="Employee Number"/>
              </CustomAttributeSource>
            </CustomAttributes>
            <Actions>
              <Action name="Approve" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
                <Properties>
                  <Property name="UserDecisionNote" value="true"/>
                  <Property name="decisionKey" value="0001"/>
                  <Property name="UserDecisionTitle" value="Enter a Rejection Reason"/>
                  <Property name="display_order_priority" value="1"/>
                </Properties>
                <Descriptions default="Approve"/>
              </Action>
              <Action name="Return" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
                <Properties>
                  <Property name="UserDecisionNote" value="mandatory"/>
                  <Property name="decisionKey" value="0002"/>
                  <Property name="display_order_priority" value="2"/>
                </Properties>
                <Descriptions default="Return"/>
              </Action>
              <Action name="Reject" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
                <Properties>
                  <Property name="UserDecisionNote" value="mandatory"/>
                  <Property name="decisionKey" value="0003"/>
                  <Property name="display_order_priority" value="3"/>
                </Properties>
                <Descriptions default="Reject"/>
              </Action>
              <Action reference="viewMemos"/>
              <Action reference="addMemo"/>
              <Action reference="DisplayExpenseForm"/>
              <Action name="launchSAPDetails" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">
                <Properties>
                  <Property name="display_order_priority" value="uwlExcludeFromPreviewDetail"/>
                </Properties>
                <Descriptions default="launchSAPDetails"/>
              </Action>
              <Action name="followUp" groupAction="" handler="dummy" returnToDetailViewAllowed="yes" launchInNewWindow="no">
                <Properties>
                  <Property name="display_order_priority" value="uwlExcludeFromPreviewDetail"/>
                </Properties>
                <Descriptions default="followUp"/>
              </Action>
            </Actions>
          </ItemType>