Retriving workflow agents as custom attributes

Hi,
I am trying to retrive work flow agents as custom attributes. This is the xml code using for custom attributes. How can I retrieve the agents  userids who can process the task.
I appreciate your help.
<ItemTypeCriteria systemId="SAP_PLM" externalType="TS90400004" 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>
Regards
Mark

Hi,
First you need to find out that where the data is available. Ask this from the workflow consultant if you are not familiar with WF. Basically the agent name (or whatever) must be in task container as a container element.
Take a look for example this:
<CustomAttributes>
   <CustomAttributeSource id="ABAP_BOR" objectIdHolder="externalObjectId" objectType="FORMABSENC" cacheValidity="final">
      <Attribute name="DEPARTMENT" type="string"/>
      <Attribute name="LASTDAYOFABSENCE" type="date"/>
      <Attribute name="FIRSTDAYOFABSENCE" type="date"/>
      <Attribute name="COSTCENTER" type="string" />
   </CustomAttributeSource>
</CustomAttributes>
ABAP_BOR = you define that you want to read the value from a business object attribute (this you need to check from the WF container)
FORMABSENC = name of the business object (you can investigate the business object in transaction SWO1)
And of course the attributes (eg. DEPARTMENT) are the attributes of the business object.
Now in your example you seem to mess up with WEBFLOW_CONTAINER and ABAP_POR. You need to use either one of them. If you want to use WEBFLOW_CONTAINER, then you are reading value directly from a task container element (not a business object attribute).
Regards,
Karri
Edited by: Karri Kemppi on Aug 31, 2011 4:04 PM
Edited by: Karri Kemppi on Aug 31, 2011 4:06 PM

Similar Messages

  • 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>

  • UWL refresh problem for ABAP BOR custom attributes

    Hi all,
    we are facing an issue with an UWL iView. We wanted to display custom attributes from an ABAP Business Object (ABAP_BOR).
    The feature is working but when an end-user receives a new task in his UWL view, he needs to click on the refresh button in order to have all the custom attributes correctly displayed.
    We have only the problem with custom attributes, for the columns containing standard workflow decision task attributes, the data are displayed directly without the need to push the refresh button.
    We are on EP 7 SPS11 and the back-end is an ECC6 version.
    We have followed the methodology described in the How to configure and customize the Universal Worklist pdf document:
    ABAP BOR
    <CustomAttributeSource id="ABAP_BOR"
    objectIdHolder="externalObjectId"
    objectType="FORMABSENC"
    cacheValidity="final">
    <Attribute name="COSTCENTER" type="string"
    displayName="Cost Center"></Attribute>
    <Attribute name="FIRSTDAYOFABSENCE" type="date"
    displayName="First day of absence"></Attribute>
    <Attribute name="LASTDAYOFABSENCE" type="date"
    displayName="Last day of absence"></Attribute>
    </CustomAttributeSource>
    Do you have an idea where this problem come from and how it could be solved?
    Thanks in advance and regards,
    Sébastien BODSON

    Hi Chintan,
    This parameter has no impact on the problem we face. I found an exact description of our problem on SAP Help portal, in the UWL pages:
    CustomAttributes, CustomAttributeSource and Attribute
    Extract from SAP Help portal:
    Every item type can have custom attributes defined, which can be filled from Business Object or Provider Data Containers like the Business Workflow Container or the Alert Container. These attribute sources are defined within the CustomAttributeSourcetag, which contains information on which attribute connector brings the custom attributes, how to identify these custom attributes in the provider system and how long the cache is valid.
    Note that once an item arrives, these custom attributes are retrieved in additional calls to the backend. For performance reasons, in order to minimize responses times to the end user, this may happen while the item is displayed to the end user - causing such attributes to be empty initially and only to appear in subsequent requests.
    The display names of the attributes for column headers and labels are defined in the display attributes of the default view of the item type.
    Does anyone know a workaround in order to have directly the complete information displayed?
    Sébastien BODSON

  • UWL custom attributes are not retreived

    Hi all,
    We are trying to add some custom attributes to our UWL. We are able to see the new columns but they remain null. It seems that the values are not retrieved from the backend.
      We have tried defining custom attributes from workflow container, from BOR object and even UM but without success.
      We have followed this thread http://weblogs.sdn.sap.com/cs/blank/view/wlg/20379 and also other ones.
    Here is my code for my custom attributes (under "TEST" comment):
    <ItemType name="uwl.task.webflow.srm.TS00700018" connector="WebFlowConnector" defaultView="TS40008005_view" defaultAction="com.sap.pct.srm.core.action.launchWD.inv.detail" executionMode="default">
           <ItemTypeCriteria externalType="TS00700018" connector="WebFlowConnector"/>
                            <CustomAttributes>
              <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="final">
                   <Attribute name="BOTYPE" displayName="Type of Business Object"/>
                   <Attribute name="BOID" displayName="Business Object ID"/>
                   <Attribute name="BOMODE" displayName="Business Object Mode"/>
              </CustomAttributeSource>     
              <!-- TEST -->
              <CustomAttributeSource id="ABAP_BOR" objectIdHolder="externalId" objectType="DECISION" cacheValidity="default">
                           <Attribute name="V_BE_REFOBJ" displayName="Description"/>
              </CustomAttributeSource>
              <CustomAttributeSource id="UM" objectIdHolder="creatorId" objectType="user" cacheValidity="final">
                        <Attribute name="department" type="string" displayName="Department"/>
              </CustomAttributeSource>
              <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="final">
                   <Attribute name="W_HEADER_INV" displayName="Header"/>
              </CustomAttributeSource>                    
              <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="W_HEADER_INV" objectType="WebflowContainer" cacheValidity="final">
                   <Attribute name="GUID" displayName="MiGuid"/>
              </CustomAttributeSource>
              <!-- END TEST -->
         </CustomAttributes>
         <Actions>                    
              <Action reference="com.sap.pct.srm.core.action.inv_approve"/>
              <Action reference="com.sap.pct.srm.core.action.inv_reject"/>
              <Action reference="com.sap.pct.srm.core.action.launchWD.inv.detail"/>
              <Action reference="com.sap.pct.srm.core.action.launchWD.print"/>
         </Actions>
    </ItemType>
    I've read in this thread [UWL: Time Delay of SAP and Custom Attributes:  refresh necessary|UWL: Time Delay of SAP and Custom Attributes:  refresh necessary] that UWL cache and the delta pull mechanism must be configured for the new attributes but I don't know how to check it.
      Please, can anyone help me?
    Thanks in advance,
      Regards

    Hi all,
      I'm going to close this thread as it is duplicated.
    Regards

  • Problem in custom attributes in a B.O.

    Hi all,
    I've defined a custom virtual multiline attribute (a list of WBEs) in a B.O. (ZFIPP) and it correctly works using SWO1. Now I've added another custom attribute that needs the previous one to fill a table of corresponding agents, but when I debug the code of the second attribute the first table is empty. When I complete the run the first table is instead correctly filled.
    Is it possible to define an attribute that uses another one and how can I check the order in which they are filled?
    I used the following instruction at the beginning of the second attribute's code:
    SWC_GET_TABLE CONTAINER 'WBSElements' OBJECT-WBSELEMENTS.
    where WBSElements is the first table mentioned above.
    Thanks in advance for your help.
    Best regards,
    Angelo

    Thanks a lot, Ramki.
    I've changed the first code line in
    SWC_GET_PROPERTY self 'WBSElements' OBJECT-WBSELEMENTS.
    and now it works!
    Regards,
    Angelo

  • Changing standard or Custom attributes

    After I upgraded to 7.4.00070 yesterday, today I’m not able
    to modify the “standard or Custom attributes” I stopped all scan activate but
    still I am not able to make any changes. Has anyone had this problem?  
    This topic first appeared in the Spiceworks Community

    Hi Raj,
    The main difference is seen by the workflow number.
    Standard workflows start with numbers like 1,2 etc...
    e.g: WS14000002
    Custom workflows start with the prefix set by the basis team in SWU3 configuration.
    The prefixs generally start with 8 or 9, so any worklfow starting with WS8 or WS9 would be a custom workflow.
    eg: WS95100010
    Hope this helps!
    Regards,
    Saumya

  • How to add custom attributes to UME

    hi gurus,
    I have developped an appliation in that I want add custom attributes to UME for the sake of retriving the BrandType.
    Please give me suggestion how to do this.
    Thanks in adance.
    Lohi

    Hi Lohi,
    UME setup
    1)     go to Configuration tool (C:\usr\sap\J2E\JC02\j2ee\configtool\consoleconfig.bat)
    2)     For “Global server configuration->services->com.sap.security.core.ume.service” define property “ume.admin.addattrs” as “BU_PARTNER” and for “ume.admin.self.addattrs” as “<empty>”. (to set value select entry, input value in “Value” field and click “Set”)
    3)     Click “Apply changes” button on the toolbar.
    4)     Restart server.
    5)     Login to http://<server_name>:<server_port>/useradmin/index.jsp and define “BU_PARTNER” property.
    Code:
    try {
         final IWDClientUser wdUser = WDClientUser.getCurrentUser();
         final IUser user = wdUser.getSAPUser();
         final String[] attribute = user.getAttribute(
              "com.sap.security.core.usermanagement",
              "BU_PARTNER");
         if( attribute==null || attribute.length == 0 || !Utils.isNotEmpty(attribute[0]) ) {
              wdComponentAPI.getMessageManager().reportMessage(...);
              return;
         } else {
              buPartner = attribute[0];
    } catch (final WDUMException e) {
         wdComponentAPI.getMessageManager().reportMessage(...);
    Best regards, Maksim Rashchynski.

  • Display custom attributes in UWL view

    Hi all,
    we're using the UWL to display SAP Business Workflow items of an SAP ERP system within SAP Portal 7.3 EHP1.
    The workflow items have some custom attributes we want to display within a custom UWL view. The following image shows the basic data for the work items in SAP ERP system:
    Here you can see two custome attributes "REQTYPE" and "REQNO" added to work item text. Those two custom attributes we want to add to our custom UWL view.
    Therefore I created following UWL configuration:
    <UWLConfiguration version="1.0">
    <ItemTypes>
    <ItemType name="uwl.task.webflow.TS99900019" connector="WebFlowConnector" defaultView="O2CDefaultView" defaultAction="viewDetail" executionMode="default">
    <ItemTypeCriteria externalType="TS99900019" connector="WebFlowConnector"/>
    <CustomAttributes>
    <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="WebflowContainer" cacheValidity="final">
    <Attribute name="REQNO" type="string" displayName="Request number"/>
    <Attribute name="REQTYPE" type="string" displayName="Request type"/>
    </CustomAttributeSource>
    </CustomAttributes>
    </ItemType>
    </ItemTypes>
    <Views>
    <View name="O2CDefaultView" width="98%" supportedItemTypes="uwl.task.webflow.TS99900019" columnOrder="REQNO, REQTYPE, subject, creatorId, createdDate, status" sortby="createdDate:descend" selectionMode="SINGLESELECT" visibleRowCount="10" emphasizedItems="new" displayOnlyDefinedAttributes="no">
    <Descriptions default="O2C tasks for approval" />
    <DisplayAttributes>
    <DisplayAttribute name="REQNO" type="string" sortable="yes">
    <Descriptions default="Request number" />
    </DisplayAttribute>
    <DisplayAttribute name="REQTYPE" type="string" sortable="yes">
    <Descriptions default="Request type" />
    </DisplayAttribute>
    </DisplayAttributes>
    </View>
    </Views>
    </UWLConfiguration>
    Unfortunately the information for request type and request number is neither displayed in culumns of UWL view nor in details of work item within UWL.
    Can anyone please tell me what I need to configure to display this information in UWL?
    regards
    René

    Hi all,
    after consulting our workflow experts we found out that we need to create "Container" objects with according names for those task types. If such container with according ID are available for the task type the information is displayed correctly.
    regards
    René

  • Custom attributes in UWL is empty

    Hello Friends,
    I've got a problem with UWL functionality. I configured specified custom configuration xml for custom attributes in custom tab display. It worked fine about 1 week ago. At the moment there is empty value for custom attributes even the container in the backend has set this values. Steps which I've done:
    1. Re-register backend system and item types
    2. Check configuration on DEV system and it works fine! I have problem only on TST and PRD system
    3. Standard parameters of work item like: subject, dueDate etc displays correctly
    4. Import DEV xml configuration file on TST system- doesn't help
    5. Recreate custom tab- doesn't work
    6. Restart Portal- doesn't help
    Its very important, that it happens only for work items with COMPLETED status on workflow procces (completedTask in UWL). The same parameters on the other tabs from workflow status: STARTED- display fine. There're a problems only for completed tasks.
    Do you have any suggestion?
    Thanks for help
    Marcin

    There is note to implelemt: 1632010

  • Custom attributes in UWL

    Hi All,
    i am trying to add Custom attributes in uwl view but value is not comming for that corresponding attributes.
    My code is below
    <CustomAttributes>
         <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="final">
         <Attribute name="Reason" type="string" displayName="Reason"/>
         <Attribute name="BeginDate" type="string" displayName="Trip Start Date"/>
         </CustomAttributeSource>
    </CustomAttributes>
    <DisplayAttribute name="Reason" type ="string" width="" sortable="yes" format="medium">
                   <Descriptions default="Reason">
                   <ShortDescriptions>
                   <Description Language="en" Description="Reason"/>
                   </ShortDescriptions>
                   </Descriptions>
                   </DisplayAttribute>     
              <DisplayAttribute name="BeginDate" type ="date" width="" sortable="yes" format="medium">
                   <Descriptions default="Trip Start Date">
                   <ShortDescriptions>
                   <Description Language="en" Description="Trip Start Date"/>
                   </ShortDescriptions>
                   </Descriptions>
                   </DisplayAttribute>
    Can tell me that where i am doing mistake.
    Regards,
    Piyush

    solved,
    problwm was from workflow side.

  • Trigger custom workflow from a custom form

    Hi all,
    I have to trigger a custom workflow from a custom form.
    I am working on 11.5.10 using forms 6i.
    Please suggest how to trigger a custom workflow from a custom form and what are the pre requisites and additional settings to be done for this.

    Hi,
    Please follow the below mentioned steps in order to achieve the desired solution:
    1. Create the custom workflow and compile it in data base.
    2. Customize the form to trigger the custom workflow using 'WF_ENGINE.CREATEPROCESS' API.
    3. Pass parameters as 'ITEMTYPE', 'ITEMKEY', 'PROCESS NAME' AND 'USER KEY'. Though user kay is not mandatory, it helps to identify the workflow if searched using status monitor.
    4. After calling create process, set the required workflow attributes and call API 'WF_ENGINE.STARTPROCESS' to start the workflow.
    5. Make sure you commit the activity after successful call.
    Let me know if you need any additional information.
    Regards,
    pP.

  • No Customer Attributes in UWL

    Hello,
    i need customer attributes in the uwl. I have Task-ID and i create a ItemType. But the column in my uwl view is empty.
    Can anybody help me?
    best regards
    karsten

    Hi Sudha,
    I mean i have a own workflow. I have the Task-ID with object ABAP-BOR ZPROZESS and attribute PROZESSID. I create my own view with columns. Thats ok. But my task is not shown in my own view.
    <ItemType name="uwl.task.webflow.TS90207919" connector="WebFlowConnector" defaultView="myProzessView" defaultAction="viewDetail" executionMode="pessimistic">
          <CustomAttributes>
            <CustomAttributeSource id="ABAP_BOR" objectIdHolder="externalObjectId" objectType="ZPROZESS" cacheValidity="final">
              <Attribute name="PROZESSID" type="string" displayName="Prozess"/>
           <!--   <ItemTypeCriteria  externalType="TS90207919" connector="WebFlowConnector"/>  -->
            </CustomAttributeSource>
          </CustomAttributes>
    </ItemType>
    <View name="myProzessView" width="98%" supportedItemTypes="uwl.task.webflow.TS90207919" columnOrder="attachmentCount, detailIcon, subject, createdDate, PROZESSID" sortby="createdDate" visibleRowCount="10" headerVisible="yes" selectionMode="SINGLESELECT" tableDesign="STANDARD" tableNavigationFooterVisible="yes" emphasizedItems="new" displayOnlyDefinedAttributes="no">
          <DisplayAttributes>
            <DisplayAttribute name="PROZESSID" type="date" width="" sortable="yes" format="medium">
              <Descriptions default="Prozess">
                <ShortDescriptions>
                  <Description Language="de" Description="Prozess"/>
                </ShortDescriptions>
              </Descriptions>
          </DisplayAttributes>
          <Actions>
            <Action reference="refresh" />
         <Action reference="removeFromNavigation" />
            <Action reference="addToNavigation" />
            <Action reference="personalize" />
          <Action name="launchSAPAction" handler="SAPTransactionLauncher">
            </Action>
          </Actions>
    </View>
    <NavigationNode name="ProzessSicht" view="myProzessView" referenceGroup="" visible="yes">
    </NavigationNode>
    I have comment ItemTypeCriteria. Otherwise i have a error:org.xml.sax.SAXException: Parsing near (CustomAttributes), and (ItemTypeCriteria) present at wrong place
    Thank you for your help.
    best regards
    karsten

  • Creating an approval workflow for a customized request form

    Hello,
    I have created a customized request form in FIM that users are to fill up and submit for rights request. A workflow is required for for request process from the requester an escalation of approvers for the request to be approved or denied.
    My challenges are:
    Adding a control to my xml configuration file that will allow users to select multiple items, a checkbox feature with a list of rights to apply for
    Creating a workflow for the customized request form, so that the approvers receive mail with the details filled on the form as the body text of the mail.?
    How can I achieve these? I will greatly appreciate your help.
    Regards,
    Josephine

    I would suggest you go through this walkthrough here:
    http://technet.microsoft.com/en-us/library/ee534919(v=ws.10).aspx 
    and this is also very helpful:
    http://blog.msresource.net/2012/07/13/including-who-approved-or-rejected-an-approval-in-its-notification-email/
    - You need an email template with all your custom content
    - you need a notification workflow containing the recipient Information  
    - you need a MPR starting the workflow when the user checks the box
    - FIM needs to know the email attribute of the approver to be able to send the mail
    - the owner Attribute of the Group must be set, this is the recipient of the approval mail in case of the Default owner approval workflow. in your case you set the appropriate Attribute of the group
    - and of cause the Connection between FIM and Exchange must be available. If not, you see a lot of Errors and warnings in the eventlog.
    Henry

  • EIM 4.3.X Creating Custom attribute Failure

    Hi All
    Has any one been able to use the custom attributes feature of EIM under Tools? When ever i add a custom attribute and press save the IE Page is just constantly loading and the attribute never saves. I have tried leaving it for ages but it eventually just times out. I am just trying this in my lab at the moment for a customer POC. If any one has a lab of 4.3.X can they try this out? I do not recommend doing it on a live system as if it works you will not be able to delete the new field :-).
    If not i think a TAC case will be the only option :-(
    Thanks,
    Matt P

    After you create the name are you hitting enter so that the custom atrribute is now part of the list and then hit save?
    Good point. Getting the right technique with eGain is essential.
    It is needed where ever you have to do this - workflows, data access links, data usage links etc. Even when you are experienced, it's possible to forget, save the item and come back later and find that the item has not really been added to the list.
    Thanks for chiming in, egain_karthik. Hang around please.
    Regards,
    Geoff

  • Selecting custom attributes from the default helpdesk screen?

    Can i select and see custom attributes from the default helpdesk screen?  I dont want to have to click through to the details tab as things can and have been missed.  See picture attached.
    This topic first appeared in the Spiceworks Community

    I have worked out the issue. I was attempting to access attributes from the BOR Object "WorkItem" as opposed to elements in the workflow container. When I created a custom container element called "ReferenceID" (as the element name) and used this in my XML it worked successfully.
    I hope this helps someone else in the future.

Maybe you are looking for