Retrieve UWL tasks in Webdynpro

Hi All,
I want to list down all the tasks from UWL in to my webdynpro application.
To achieve that Included the following Jar files in the application,
bc.uwl.service.api_api.jar, bc.uwl.service.api_core.jar,com.sap.security.api.jar, prtapi.jar, com.sap.portal.unification.objectbasednavigationsercice_api.jar,..
I have no errors in the code, when we try running the application , runtimeResources is getting null value. The runtime class is available under prtapi.jar.
Followed the blog Flashy UWL
The code is as follows,
try
IWDClientUser user1 = WDClientUser.getLoggedInClientUser();
IUser epUser =user1.getSAPUser();
IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
if(runtimeResources==null)
wdComponentAPI.getMessageManager().reportSuccess("Portal Runtime NULL");
else
ervice uwlService = (IUWLService) runtimeResources.getService( IUWLService.ALIAS_KEY);
UWLContext uwlContext = new UWLContext();
IUser user = user1.getSAPUser();
uwlContext.setUser(user);
uwlService.beginSession(uwlContext, 20);
IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);
QueryResult result = itemManager.getItems(uwlContext,null,null);
int size = result.getTotalNumberOfItems();
ItemCollection collection = result.getItems();
java.util.List list = collection.list();
Item item = null;
Date date = null;
String subject = null;
for(int i = 0; i < 5; i++)
if(!(i > (size -1)))
item = collection.get(i);
date = item.getDueDate();
subject = item.getSubject();
wdComponentAPI.getMessageManager().reportSuccess("item "+item);
wdComponentAPI.getMessageManager().reportSuccess("date "+date);
wdComponentAPI.getMessageManager().reportSuccess("subject "+subject);
catch(Exception e)
wdComponentAPI.getMessageManager().reportSuccess("Exp: "+e.getStackTrace());
Can anyone help us in finding the solution, why runtimeResources is getting null value, It will be really help full.
Thanks.

The issue is with the user when you created it in the portal. Put Locale/language to the user in the User Administration.
and then set it to the UWL Context:
uwlContext.setLocale(user.getLocale());
this should solve the problem

Similar Messages

  • Displaying UWL tasks in Webdynpro java application

    Dear Experts,
    I am developing a WebDynpro Java application to access uwl tasks,
    Have added the following code in try catch block with external jars
    1. prtapi.jar
    2. bc.uwl.service.api.jar
    IUWLService uwlService = null;
    IWDClientUser user1 = WDClientUser.getLoggedInClientUser();
    IUser epUser =user1.getSAPUser();
    IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
    if( runtimeResources == null)
       wdComponentAPI.getMessageManager().reportSuccess("Portal Runtime NULL");
    else
       uwlService = (IUWLService)runtimeResources.getService( IUWLService.ALIAS_KEY);
    UWLContext uwlContext = new UWLContext();
    IUser user = user1.getSAPUser();
    uwlContext.setUser(user);
    uwlService.beginSession(uwlContext, 20);
    IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);
    QueryResult result = itemManager.getItems(uwlContext,null,null);
    int size = result.getTotalNumberOfItems();
    ItemCollection collection = result.getItems();
    java.util.List list = collection.list();
    Item item = null;
    Date date = null;
    String subject = null;
    for(int i = 0; i < 5; i++)
      if(!(i > (size -1)))
          item = collection.get(i);     
          date = item.getDueDate();     
          subject = item.getSubject();
         wdComponentAPI.getMessageManager().reportSuccess("item "+item);
         wdComponentAPI.getMessageManager().reportSuccess("date "+date);
         wdComponentAPI.getMessageManager().reportSuccess("subject "+subject);
      }//if
    }//for
    I have created this webdypro application with Authentication mode set as True.
    After deploying this application, i'm getting this error...
    "java.lang.NoClassDefFoundError: com/sap/netweaver/bc/uwl/IUWLService "
    can anybody tell me what is the problem???

    Hi
    see the following link it will be helpful for u.
    [UWL Tasks|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#12]
    Regards
    Hazrath
    Edited by: Hazrath on Mar 25, 2008 8:01 AM

  • UWL tasks using API

    Hi all,
    I am trying to create UWL tasks from webdynpro using the UWL API. but i am not able to do so.
    I am using the below code for it.
    IPushChannel push = uwlService.getPushChannel();
    IProviderConnector connectors[] = uwlService.getRegisteredProviderConnectors();
    int thisConnector = 0;
    for(int j=0; j<connectors.length; j++){
    x.reportSuccess(connectors[j].toString());
    if(connectors[j].getId().equalsIgnoreCase(IProviderConnector.WEBFLOW_CONNECTOR_ID))
    thisConnector = j;
    if(thisConnector > 0) {
    Item item =new Item(
    IProviderConnector.WEBFLOW_CONNECTOR_ID,
    "USER.R3_DATASOURCE.INABBEPSKA",""+new Date().getTime(),
    "USER.R3_DATASOURCE.INABBEPSKA "
    item.setDescription("This describes a task created at "+new Date().getTime());
    item.setUser("USER.R3_DATASOURCE.INABBEPSKA");
    item.setSubject("This was generated at "+ new Date().getTime());
    item.setItemType(ItemType.UWL_ITEM_TASK_EXECUTABLE);
    item.setCreatedDate(new Date());
    item.setDueDate(new Date());
    item.setCreatorId("USER.R3_DATASOURCE.INABBEPSKA");
    item.setStatus(StatusEnum.NEW);
    item.setExternalObjectId("2");
    // item.setExternalType("AdHocTask");
    Set users = new HashSet();
    users.add("USER.R3_DATASOURCE.INABBEPSKA ");
    push.pushSharedItem(
    connectorsthisConnector,
    item,
    users
    } catch (Exception e) {
    x.reportSuccess(e.toString());
    Where am i going wrong!!!!!!!!!!
    the tasks are not being created in UWL iview.
    Regards,
    Sudheer.

    Hi Sudheer,
    I have used the below code to create a task in the UWL, u can try with this code,
    try
              IUser creator = null;
                         IWDClientUser clientUser  =  WDClientUser.getCurrentUser();
                         sapUser = clientUser.getSAPUser();
              creator = sapUser;
              IJWFPortalService service =     (IJWFPortalService) PortalRuntime.getRuntimeResources().getService(IJWFPortalService.KEY);
              IWorkflow eWF = service.getWorkflowEngineJMS();
              Hashtable taskCtxt = new Hashtable();
              taskCtxt.put("_wftemplatename_","QuickTask");
              taskCtxt.put("_wfdescription_","Description of the Task");
              taskCtxt.put("_wftaskassignees_","sapuserid of the assignee");
              taskCtxt.put("_wfdueasap_", "ASAP");
              Hashtable appCtxt = new Hashtable();
              appCtxt.put("mysystem", "SAP_LocalSystem");
              appCtxt.put("mylaunchcontext", "uwl");
              appCtxt.put("myappcontext", "test");
              eWF.createTask("Title of the Task",creator,taskCtxt,null);
         catch (Exception e)
              wdComponentAPI.getMessageManager().reportSuccess(e.toString());
    Regards,
    Kalaivani

  • Error while trying to retrieve the task: EventId(complete) does not belong

    Hi Experts,
    I have created a process composer DC in which i have created a process with two human tasks.
    Each tasks is binded with web dynpro Iviews (means followed all the steps neccesary).
    I deploed the DC successfully. now i started the process and got a task in my UWL but on click of the task i got the below error.
    Error while trying to retrieve the task: EventId(complete) does not belong to referenced component interface of ComponentUsage(com.sap.tc.bpem.wdui.appcontainer.containercomp.ContainerComp:com.infosys.mdm.LoadRepositoryComp, createOnDemand=false, childComponent=com.infosys.mdm.LoadRepositoryComp)
    [EXCEPTION]
    java.lang.IllegalArgumentException: EventId(complete) does not belong to referenced component interface of ComponentUsage(com.sap.tc.bpem.wdui.appcontainer.containercomp.ContainerComp:com.infosys.mdm.LoadRepositoryComp, createOnDemand=false, childComponent=com.infosys.mdm.LoadRepositoryComp)
    I have rechecked the event that i have created in the component controller and Interface controller.
    Can you please help me in debunging the error.
    thanks
    Narendra

    Hi,
    sounds like an program error. That is an problem which occurs if one or multiple components try to lock the same galaxy object at the same point in time. Did you configured something special on the given task? e.g deadlines?
    My proposal is to open an Customer Message so that we can have a detailed look onto the system. If this is not possible could you please provide the complete trace file and some more details about the modeled task?
    Best Regards
    Andreas

  • BPM throws: "Error while trying to retrieve the task"

    Hi,
    <br><br>
    When clicking on a task(WD-UI) in UWL, BPM throws an error message:<br>
    Error while trying to retrieve the task<br><br>
    Though, I am able to open up the task when I restart the server ( CE 7.1 EHP1 SP04 patched).
    <br><br>
    Anyone an idea?
    <br><br>
    Regards,
    <br><br>
    Wesley
    <br><br>
    The log file presents the following information (partially):
    <br>
    Caused by: java.lang.IllegalStateException: com.sap.glx.core.kernel.api.TransitionRollbackException: Exception during prepare, rolling back
    at com.sap.bpem.tm.adapter.core.TaskAdapter$TicketSynchronization.beforeCompletion(TaskAdapter.java:581)
    at com.sap.engine.services.ts.jta.impl.SynchronizationWrapper.beforeCompletion(SynchronizationWrapper.java:27)
    at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:234)
    ... 86 more
    Caused by: com.sap.glx.core.kernel.api.TransitionRollbackException: Exception during prepare, rolling back
    at com.sap.glx.core.kernel.mmtx.AbstractTransactionBase.rollback(AbstractTransactionBase.java:544)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:174)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.commit(AbstractTransaction.java:77)
    at com.sap.bpem.tm.adapter.core.TaskAdapter$TicketSynchronization.beforeCompletion(TaskAdapter.java:579)
    ... 88 more
    Caused by: com.sap.glx.core.kernel.trigger.TriggerLockingException: Cannot acquire lock for update <Context_0_TaskAttributes_ac33d162fa908f8198b3c740708bb6c5{919e4f4b-1581-11df-c72f-02004c4f4f50}(Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(?),Scope_13_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f4a-1581-11df-94e6-02004c4f4f50}(?),3,true)|Context_0_TaskAttributes_ac33d162fa908f8198b3c740708bb6c5(Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(Instance_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{0d4c2925-157b-11df-b84e-02004c4f4f50}(?),null,Token_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{917829a3-1581-11df-b6e0-02004c4f4f50}(?),false),Scope_13_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f4a-1581-11df-94e6-02004c4f4f50}(Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(?)),4,*true)>
    at com.sap.glx.core.kernel.trigger.node.LockingTreeJoinNode.process(LockingTreeJoinNode.java:638)
    at com.sap.glx.core.kernel.trigger.core.BFSController.update(BFSController.java:173)
    at com.sap.glx.core.kernel.trigger.impl.TriggerNetworkManagerImpl$SequentialController.update(TriggerNetworkManagerImpl.java:550)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_trigger(AbstractTransaction.java:199)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:170)
    ... 90 more
    Caused by: com.sap.glx.core.kernel.trigger.TriggerLockingException: Cannot acquire read row lock for after image (key = Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(Instance_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{0d4c2925-157b-11df-b84e-02004c4f4f50}(?),null,Token_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{917829a3-1581-11df-b6e0-02004c4f4f50}(?),false), name = JOIN_CompletionDeadlineWithRealDelayConditionalSequenceConnector_context_join_0_69)
    at com.sap.glx.core.kernel.trigger.node.LockingTreeJoinNode.lockAfterRow(LockingTreeJoinNode.java:308)
    at com.sap.glx.core.kernel.trigger.node.LockingTreeJoinNode.process(LockingTreeJoinNode.java:636)
    ... 94 more

    Hi,
    sounds like an program error. That is an problem which occurs if one or multiple components try to lock the same galaxy object at the same point in time. Did you configured something special on the given task? e.g deadlines?
    My proposal is to open an Customer Message so that we can have a detailed look onto the system. If this is not possible could you please provide the complete trace file and some more details about the modeled task?
    Best Regards
    Andreas

  • Problem in retriving workitem id from uwl in abap webdynpro

    Hello,
    Curently, I've a problem similar with this post : Problem in retriving workitem id from uwl in abap webdynpro
    But unfortunatelly there is no answer :/
    I've followed this tutorial : http://wiki.sdn.sap.com/wiki/display/WDABAP/IntegratingWebDynproABAPapplicationswithUWLforworkflowin+Portal
    And I have a problem in my WD Abap. The WI_ID field is empty (initial).
    Here is my XML :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'
      >
    <UWLConfiguration version="1.0">
         <ItemTypes>
              <ItemType name="uwl.task.webflow.TS90000087.ED1CLNT100" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
                <ItemTypeCriteria systemId="ED1CLNT100" externalType="TS90000087" connector="WebFlowConnector"/>
                <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="zps_pnpi"/>
                        <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                        <Property name="DynamicParameter" value="WI_ID1=${item.externalId}"/>
                        <Property name="openInNewWindow" value="yes"/>
                        <Property name="WebDynproNamespace" value="sap"/>
                        <Property name="System" value="ED1CLNT100"/>
                        <Property name="display_order_priority" value="5"/>
                     </Properties>
                     <Descriptions default=""/>
                   </Action>
                </Actions>
              </ItemType>
         </ItemTypes>
    </UWLConfiguration>
    Here are the parameter defined in my application :
    WI_ID     000000000000     SWW_WIID
    WI_ID1     ${item.externalId}     STRING
    And, i've made the test with both the WI_ID and the WI_ID1 in the XML but everytime, no value at all.
    Could you please help me ? It's been three days I'm looking for a solution to get my Workitem ID in my Webdynpro ...

    In fact, it's quite strange, I added the menu and toolbar display and I can see that my url contains the data ...
    http://<begin_of_the_url>DynamicParameter=System%3DED1CLNT100%26wi_id%3D000000629442%26WI_ID%3D000000629442%26WI_ID1%3D000000629442<end_of_the_url>
    So ... how is it possible ?
    And the next question, how can I get the full url so I can parse it myself ?

  • Configuration of UWL with Abap webdynpro

    Hi,
    We are doing configuration of UWL with Abap webdynpro. Our purpose to launch Abap webdynpro application , once clicked to a worlitem in UWL iView. we are unable to do due to following errors.
    We have done in this way.
    1.Created ECC system in EP
    2.register the uwl.webflow
    3.create ABAP iview(for test purpose still getting error when preview) (N/A)
    4.clear cache
    4.import xml file
    <ItemType name="uwl.task.webflow.TS91000006.UWLECCCLNT530" connector="WebFlowConnector" defaultView="urliview" defaultAction="viewDetail" executionMode="pessimistic">
          <ItemTypeCriteria systemId="UWLECCCLNT530" externalType="TS91000006" connector="WebFlowConnector" />
          <Actions>
            <Action name="launchWebDynProABAP" handler="SAPWebDynproABAPLauncher">
              <Properties>
                <Property name="WebDynproApplication" value="em_wipm_app" />
                <Property name="WebDynproNamespace" value="kgo" />
                <Property name="System" value="UWLECCCLNT530" />
                <Property name="DynamicParameter" value="WI_ID=${item.externalId}" />
             <Property name="display_order_priority" value="5" />
              </Properties>
              <Descriptions default="" />
            </Action>
          </Actions>
        </ItemType>
    5.Getting error,when I click task to perform dynpro abap screen.
    6.WI_ID not been received.
    Plz let me know the solution.
    Thanks,

    Hello,
    I think you have to import the xml-file before clearing the cache again. Your new xml-file needs a higher priority then the default view.
    You have just defined a new ItemType in your new xml-file. I am not sure, but I think that you will have to define in this file also a new view for this ItemType. Because otherwise it is not defined how this new ItemType should be shown.
    Regards,
    Iris

  • UWL Integration with Webdynpro ABAP

    Hello,
    I am creating a Webdynpro ABAP Application in which I want to create a screen(form) with various Input fields which will be entered by the user and it will have a Submit button.
    On the click of the Submit button I want to trigger a Workflow and send a workitem to the Approver. The Approver will be determined by the creator by selecting from a DropDown which will have the list of all the Approvers. How can I integrate this with UWL so that the Approver can logon to the Portal to Approve /Reject the workitem.
    Any help would be highly appreciated.
    Thanks in advance.

    you need to create the task entry in uwl xml file for your workflow task to call for an application.
    you can check performance management worklfow ws12300122 that has task 12300110.
    to execute a webdynpro abap application for task 12300110 below xml content in uwl configuration is required.
       <ItemType name="uwl.task.webflow.TS12300110.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
          <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType="TS12300110" connector="WebFlowConnector"/>
          <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="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                        <Property name="WebDynproApplication" value="HAP_MAIN_DOCUMENT"/>
                     <Property name="PLAN_VERSION" value="${item.PlanVersion}"/>
                     <Property name="APPRAISAL_ID" value="${item.ID}"/>
                     <Property name="PART_AP_ID" value="${item.PartID}"/>
                        <Property name="wi_id" value="${item.externalId}"/>
                        <Property name="MODE" value="X"/>
                      <Property name="sap-wd-configId" value="HAP_AC_MAIN_DOC"/>
                        <Property name="openInNewWindow" value="yes"/>
                     <Property name="System" value="SAP_Webdynpro_ABAP"/>
                      <Property name="WebDynproNamespace" value="sap"/>
                       <Property name="display_order_priority" value="5"/>
                   </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
        </ItemType>
    Do respond for futher queries.

  • Retriving custom attributes in uwl.task.webflow.decision

    Hello,
    I know this question is closed. I am trying  to retreive custom attributes from decisson(uwl.task.webflow.decision)uwl.task.webflow.decision.TS00008267. I am not able to do that.
    I am able to retrieve ABAP_BOR object.
    These attributes are not directly in container. Those attributes are located in structures  ADHOCOBJECTS, _WORKITEMS, _Attachments.
    How I am able to retrieve them. Can you point me to scriplets of XML.
    I really appreciate your help. 
    Regards
    Mark

    Hi,
    Thanks for your help.
    I am able to get from task. I am not able to get from Decission (ex .uwl.task.webflow.decision.TS90400017.SAP_PLM)
    my xml looks like this. I am able to get from Task object.
    Any Ideas. I really appreciate your help.  Is there any special way for decission.
    <ItemType name="uwl.task.webflow.decision.TS90400017.SAP_PLM" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="viewDetail" executionMode="default">
               <ItemTypeCriteria systemId="SAP_PLM" externalType="TS90400017" connector="WebFlowConnector"/>     
          <CustomAttributes>
                  <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="final">
                    <Attribute name="BOR_OBJECT" type="string" displayName="BOR Object"/>
                  </CustomAttributeSource>
                  <CustomAttributeSource id="ABAP_BOR" objectIdHolder="BOR_OBJECT" objectType="ZBUS2078" cacheValidity="default">
                    <Attribute name="Description" type="string" displayName="Description"/>
                    <Attribute name="RequiredEndDate" type="date" displayName="Due Date"/>
                    <Attribute name="Number" type="string" displayName="Number"/>
                    <Attribute name="RESPONSIBLE" type="string" displayName="Responsible"/>
                  </CustomAttributeSource>
                </CustomAttributes>
          </ItemType>
    Following is in the view
    <DisplayAttribute name="Description" type="string" width="" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
              <Descriptions default="Description"/>
            </DisplayAttribute>

  • Error when launching GP UWL tasks from consumer portal

    In our federated portal network we have configured the universal worklist in the consumer portal to display guided procedure tasks from a producer portal - both portals are NW 7.0 SP14.
    All GP tasks from the producer portal are displayed in the consumer portal without issue.
    When we attempt to launch one of the GP tasks in the consumer portal we recieve the following error - Could not retrieve process instance: contact your system administrator.
    If we launch the GP tasks in the producer portal there are no issues.
    Has anyone experienced a similar situation?

    I worked through this issue with SAP support.
    For the ItemType with name="uwl.task.gp.XXX", where XXX is the system alias of the remote GP system.
    Changed attribute from defaultAction="launchGP" to defaultAction="editItem" because the name of the Action described for this itemType is "editItem".
    The action handler that is used is "UrlLauncher" (handler="UrlLauncher") but this handler works only with attribute launchInNewWindow="yes". So in all actions with attribute handler="UrlLauncher" change the attribute launchInNewWindow from "no" to launchInNewWindow="yes".
    Uploaded new uwl.gp.config.xml with high priority.

  • Exception while clicking button on UWL that launches WebDynpro Application

    Hi All,
    I am getting a portal runtime error while clicking on Button thatu2019s there in UWL. When user clicks on this button a webdynpro abap application should get launched. However we are getting exception. Button is added via UWL configuration file. Everything is working fine in Development system however this issue is there in QA system only.
    Here is the piece of code written in UWL configuration file.
    <ItemType name="uwl.task.webflow.TS00008267.MK1_500" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
          <ItemTypeCriteria systemId="MK1_500" externalType="TS00008267" connector="WebFlowConnector"/>
          <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="ZTE_EXP_DETAILS"/>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                <Property name="DynamicParameter" value="WI_ID=${item.externalId}"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="WebDynproNamespace" value="SAP"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
        </ItemType>
    Below are the details of portal exception.
    [EXCEPTION]
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Unable to parse template '&lt;System.Access.WAS.protocol&gt;://&lt;System.Access.WAS.hostname&gt;/sap/bc/webdynpro/&lt;WebDynproNamespace&gt;/&lt;WebDynproApplication&gt;/;sap-ext-sid=&lt;ESID[url_ENCODE]&gt;?sap-ep-iviewhandle=007&lt;ESID[HASH]&gt;&amp;sap-wd-configId=&lt;WebDynproConfiguration&gt;&amp;sap-ep-iviewid=&lt;IView.ShortID&gt;&amp;sap-ep-pcdunit=&lt;IView.PCDUnit.ShortID&gt;&amp;sap-client=&lt;System.client&gt;&amp;sap-language=&lt;Request.Language&gt;&amp;sap-accessibility=&lt;User.Accessibility[SAP_BOOL]&gt;&amp;sap-rtl=&lt;LAF.RightToLeft[SAP_BOOL]&gt;&amp;sap-ep-version=&lt;Portal.Version[url_ENCODE]&gt;&amp;&lt;ProducerInfo&gt;&amp;sap-explanation=&lt;User.Explanation[SAP_BOOL]&gt;&amp;&lt;StylesheetIntegration[IF_true PROCESS_RECURSIVE]&gt;&amp;&lt;Authentication&gt;&amp;&lt;DynamicParameter[PROCESS_RECURSIVE]&gt;&amp;&lt;ForwardParameters[QUERYSTRING]&gt;&amp;&lt;ApplicationParameter[PROCESS_RECURSIVE]&gt;'; the problem occured at position 310. Cannot process expression &lt;System.client&gt; because Invalid System Attribute:
    System:    &amp;#39;SAP_LocalSystem&amp;#39;,
    Attribute: &amp;#39;client&amp;#39;.
         at java.lang.Throwable.<init>(Throwable.java:194)
         at java.lang.Exception.<init>(Exception.java:41)
         at java.lang.RuntimeException.<init>(RuntimeException.java:43)
         at com.sapportals.portal.prt.runtime.PortalRuntimeException.<init>(PortalRuntimeException.java:57)
         at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContentPass(AbstractIntegratorComponent.java:123)
         at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContent(AbstractIntegratorComponent.java:98)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:166)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:111)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:200)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:115)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:177)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:200)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:115)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:177)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:963)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:249)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:0)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:92)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:30)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:35)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:101)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Please guide how to resolve same.
    Regards,
    Madhvika
    Edited by: Madhvika Joshi on Apr 8, 2011 2:52 AM
    Edited by: Madhvika Joshi on Apr 8, 2011 2:52 AM
    Edited by: Madhvika Joshi on Apr 8, 2011 2:57 AM

    Here is the code for Config file
      <ItemType name="uwl.task.webflow.TS00008267.QT1_500" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
          <ItemTypeCriteria systemId="QT1_500" externalType="TS00008267" connector="WebFlowConnector"/>
          <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="ZTE_EXP_DETAILS"/>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                <Property name="DynamicParameter" value="WI_ID=${item.externalId}"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="WebDynproNamespace" value="SAP"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
        </ItemType>

  • UWL Task Attachments

    We have a requirement to launch custom webdynpro java app when the user selects the atttachment for the UWL task. We can modify the UWL XML file to lauch custom app for a task but for attachments I am not sure. Is there a way to configure the attachments for the UWL task to launch custom webdynpro java application?  We are on NW 7.01 SP6.
    Thanks for the help in advance

    Hi Anu,
    I am not sure that we can configure the attachments or not for your requirement. 
    As attachments link comes from Wrok Flow side.
    But i can suggest you one work around  -- you remove the default attachments  button from UWL iview
    and in  UWL XML do the changes to add link which each will appear for each task . On this link you can
    open your custom apps very easily and for justification you can say that for checking the attachments 
    no need to open the task details.
    Regards,
    Piyush

  • Sending UWL task URL via email

    I am using NW 2004s Sneak Preview. I have Guided Procedure setup with several tasks to be completed by different user.
    I would like to send an URL for a UWL task to a user by email. So User need not go to UWL to check his inbox.
    Appreciate any help.
    Thanks,
    Abhay

    Hi Abhay,
    UWL connects to GP Runtime and shows the task in a window.
    The URL used is the one to GP Runtime.
    There are 2 options:
    1. You are running in portal:
    http://<server>:<port>/irj/portal?NavigationTarget=ROLES://portal_content/com.sap.pct/platform_add_ons/com.sap.caf.eu.gp.folders.gp/com.sap.caf.eu.gp.roles.runtime/com.sap.caf.eu.gp.worksets.runtime/com.sap.caf.eu.gp.pages.procinstance&DynamicParameter=processId%3D<XaX>%26taskId3D<YaY>
    2. You are running stand-alone WDp:
    http://<server>:<port>/webdynpro/dispatcher/sap.com/cafeugpuirt/Runtime?app.processId=<XXaXX>&#38;app.taskId=<YYaYY>
    In both cases you will need the IDs of the process<XaX> and task<YaY>, which can be taken from the GP NWA tool.
    Hope that helps.
    Best regards,
    George.

  • Read UWL properties in WebDynpro

    Hi,
    I have to read a couple of parameters from the UWL in WD.
    The UWL for the WD launch part is configured as follows:
    [code]   <ItemType name="uwl.task.webflow.TS91000001.PP1CLNT100" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynpro" executionMode="default">
          <ItemTypeCriteria systemId="PP1CLNT100" externalType="TS91000001" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchWebDynPro" groupAction="no" handler="SAPWebDynproLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">
              <Properties>
                <Property name="WebDynproApplication" value="WebDynproFromUWLApp"/>
                <Property name="WebDynproDeployableObject" value="local/WebDynproFromUWL"/>
                <b><Property name="DynamicParameter" value="wi_id%3D${item.externalType}%26wi_system%3D${item.systemId}"/></b>
                <Property name="System" value="XD1WDS"/>
              </Properties>
              <Descriptions default="launchWebDynPro"/>
            </Action>
          </Actions>
        </ItemType>[/code]
    The question is more about the dynamicParameter part.
    First I added the wi_system and wi_id to the application properties in WD.
    Then I used the following code:
    [code]     IWDWebContextAdapter adapter = WDWebContextAdapter.getWebContextAdapter();
         String wi_id = adapter.getRequestParameter("wi_id");
         wdContext.currentGenericApplicationElement().setWorkItem(wi_id);     [/code]
    I am able to retrieve the <b>wi_id</b>, but NOT the wi_system. I retrieve this parameter the same way as shown in the WD code above.
    I also used the <b>requestParameterMap</b>, but that gave me information about SaptestID, sap-css-url etc.
    Who can help me? Is the UWL dynamic parameter configured correctly?
    Sandhya

    Hello Sandhya,
    when i add more properties of name "DynamicParameter" to the xml file
    E.g.
    <Property name="DynamicParameter" value="name1=value1"/>
    <Property name="DynamicParameter" value="name2=value2"/>
    and upload the file again, just the last one of the 2 Properties get uploaded.
    The uploaded file looks like this:
    <Property name="DynamicParameter" value="name2=value2"/>
    seems like a property name has to unique.
    How did you solve that?
    cheers
    Markus
    p.s.: we are on NW04s SP9

  • Email Notifications for both UWL Tasks and Collaboration Tasks.

    Hello,
    I want to configure Email Notifications for both UWL Tasks and Collaboration Tasks.
    Could any one please give me the configuration steps.
    Thanks in Advance.
    Regards,
    Sridhar.

    Hi sri,
    Refer the following threads
    https://www.sdn.sap.com/irj/scn/thread?threadID=147316
    https://www.sdn.sap.com/irj/scn/thread?messageID=315715#315715
    https://www.sdn.sap.com/irj/scn/thread?messageID=1170132#1170132
    Regards,
    P.Manivannan

Maybe you are looking for

  • Lowering resolution on Dell E6510/Intel GM45HD

    Not sure if this is the right forum... anyway, I seem to be unable to lower the resolution on my laptop screen from the default one of 1600x900 (I need to get it to 1024x768 to clone the output to a projector). Attaching an external monitor works fin

  • How to use base band wave,subcarrier wave and carrier wave to creat the FM wave? When I use the MT Modulate FM VI in USRP,I don't konw how to use it.

    How to use base band wave,subcarrier wave and carrier wave to  creat  the FM wave? When I use the MT Modulate FM VI in USRP,I don't konw how to use it.

  • Sound settings wont keep

    Im running Windows 7 Ultimate 64bit and Creative Audigy 2 ZS Platinum. When i go to the volume control in windows and click on Playback, then go to speakers, then click on Tone. I adjust the Bass Balance and Treble Balance to what i like everything i

  • Movie import into iTunes library

    Hi all, I have a very large collection of DVDs - it's one of the first technologies I actually got into early...I'm usually late to the game, so to speak. Anyway, given that I'm moving everything to a digital format for use on my plethora of Macs and

  • Using gotoAndStop in my Main.as

    Hi, I've been struggeling for hours to use the function gotoAndStop in my Main.as file to start on frame 5 from the beginning on my script. On frame 5 there is a screen I want to begin with so I want to use gotoAndStop. But when I use stop(); on the