Skip to Content
0
Former Member
Dec 01, 2008 at 04:51 PM

Combine standard task (ABAP method call) and additional UWL Action Handlers

26 Views

Hi, i have defined a task with an asynchronous ABAP method call and a terminating event which i want to use "as is" in the universal worklist, that means that the standard action has to be the ABAP method call defined for the task.

In addition to that i want to add an extra button to the workitem view in the worklist which opens a web dynpro application. The web dynpro needs a parameter from the workitem container. Opening the web dynpro is not required for completing the task, so i do not consider using secondary methods.

I created an UWLConfiguration for the task type without defining the defaultAction attribute, since defaultAction should not be overwritten. I wanted to use SAPWebDynproABAPLauncher to generate the button since i can easily include values from the workitem container in the call.

When executing a workitem from the worklist the ABAP method call is not performed, instead a window opens which just displays the workitem. The button to web dynpro is generated and works fine.

Does anyone have a clue how i can use UWL to define an additional button with SAPWebDynproABAPLauncher without overwriting the standard task definition?

My definition:

<ItemTypes>
    <ItemType
name="uwl.task.webflow.TS95100103"
connector="WebFlowConnector"
defaultView="DefaultView">
      <ItemTypeCriteria
systemId="ED1CLNT100" 
externalType="TS95100103" 
connector="WebFlowConnector"/>
      <CustomAttributes>
        <CustomAttributeSource
id="WEBFLOW_CONTAINER" 
objectIdHolder="externalObjectId" 
objectType="WebFlowContainer" 
cacheValidity="final">
          <Attribute
name="HROBJECT_OBJEKTID" 
type="string" 
displayName="HROBJECT_OBJEKTID"/>
        </CustomAttributeSource>
      </CustomAttributes>
      <Actions>
        <Action
name="launchWebDynPro"
groupAction=""
handler="SAPWebDynproABAPLauncher"
returnToDetailViewAllowed="yes" 
launchInNewWindow="yes" 
launchNewWindowFeatures="resizable=yes,scrollbars=yes,
status=yes,toolbar=no,menubar=no,
location=no,directories=no">
          <Properties>
            <Property
name="WebDynproApplication" value="hr01_app"/>
            <Property
name="newWindowFeatures" 
value="resizable=yes,scrollbars=yes,status=yes,
toolbar=no,menubar=no,location=no,directories=no"/>
            <Property
name="DynamicParameter"
value="candidacy_id=${item.HROBJECT_OBJEKTID}
&amp;from_workflow=X"/>
            <Property 
name="openInNewWindow" value="yes"/>
            <Property 
name="System" value="SYSTEM_ALIAS_ERP"/>
            <Property 
name="WebDynproNamespace" value="hr01"/>
          </Properties>
          <Descriptions default="Show"/>
        </Action>
      </Actions>
    </ItemType>
  </ItemTypes>

Thank you very much, best regards, Martin

Edited by: Martin Sommer on Dec 1, 2008 5:51 PM