cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance WFService

former_member184588
Active Participant
0 Kudos

Hello,

we wrote our first NW GW + SAPUI5 application and it is great to have these two new technologies / products.

Currently we are at a point where we would like to enhance the WFService to get more informations out of the workitem. When I get it right, the workitem has an container and we could fill this container with additional informations. Is there a good way to get the fields from this workitem-container?

What is the best way to access more informations from this workitem?

Thanks a lot,

  Vanessa

Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

There  are several ways to get business data.

1. Use BADI /IWWRK/ES_WF_CUST_EXT_IB

    Reference: Workflow User Exit

    You can call SAP_WAPI_* function module to access the workitem

2. Implement Gateway services which gets business data.

former_member184588
Active Participant
0 Kudos

Hello Masayuki,

thanks for your answer. I will give it a try. Is there no easier way to solve this? It would be great to be able to consume the additional informations like materialno without developing more web services. How to read the added information in alternative 1 from the WFService? It would be great to be able to read the data from a wi-contrainer. Sorry, but I am new to this topic and maybe these questions are a little bit stupid.

Greetings.

former_member184588
Active Participant
0 Kudos

Hi,

I had to stop working on this program and now I need to continue with the web service.

The question is still how to get the information in the container from the WFService. Is there a standard way to consume WI-Container-Data with the WFService?

thanks, Vanessa

Former Member
0 Kudos

Hi Vanessa,

Container elements can be obtained by navigating into the /ExtensibleElements path of a WorkflowTask entity, e.g. WorkflowTaskCollection('000000010174')/ExtensibleElements  (not well named is it!)

The container collection contains each element as a name-value pair.

e.g.

<m:properties>

<d:workitem_id>000000010174</d:workitem_id>

<d:name>_WI_ACTUAL_AGENT</d:name>

<d:value/>

<d:context>CONTAINER</d:context>

</m:properties>

Cheers

Ron.

Answers (1)

Answers (1)

Former Member
0 Kudos

Just to qualify my earlier answer, you do not have to enhance WFSERVICE if you wish to read container values.

Additionally, enhancing the workflow template and placing extra values in the workflow or task container may solve problems of visibility. Any new container element will simply appear in the ExtensibleElementsCollection.