Skip to Content
0
Former Member
Jul 06, 2007 at 08:46 AM

Workflow XML R/3 can't parse XML answer, need help for syntax

38 Views

Hello all,

i got a serious problem with workflow XML. I's a lot of text.

What do we do:

In worflow for PR's, there is a web activity, that sends out informations to a domino server. Sending out and receiving the acknowledgement works. The web activity than waits, until a answer comes in.

Now, if the domino user releases or rejects the PR, domino sends a XML message to R/3. This message is the big problem!!

R/3 documentation is not clear in this case. The R/3 example shows this syntax

<?xml version="1.0" ?>

<WfMessage Version="SAP.1.0">

<WfMessageHeader>

<Request>

<ResponseRequired>Yes</ResponseRequired>

</Request>

http://www.xyz.com/SAP/BC/WORKFLOW_XML/? protocol=01&localkey=000000111669</Key>

<Operation>ProcessInstanceStateChanged</Operation>

</WfMessageHeader>

<WfMessageBody>

<ProcessInstanceStateChanged>

http://www.xyz.com/SAP/BC/WORKFLOW_XML/? protocol=01&localkey=000000111669</Key>

http://www.xyz.com/SAP/BC/WORKFLOW_XML/? protocol=01&localkey=000000112625</ProcessInstanceKey>

<State>closed.completed</State>

<ResultData>

<ANSWER>test successful</ANSWER>

</ResultData>

</ProcessInstanceStateChanged>

</WfMessageBody>

</WfMessage>

Link to the example:

http://help.sap.com/saphelp_47x200/helpdata/de/54/de9e3887d6174fe10000009b38f842/frameset.htm

In that case, the "key" tag points to the external system, but has an "localkey" parameter, that holds the R/3 instance of the workflow task. "ProcessInstanceKey" seems to be the key for the external system. Completely confusing!!

Whenever we build our XML message in that way, we got the error 104 which means, that a process state change from [blank] to [blank] is not foreseen.

Can anybody help further?

Is there any document, that describes clear, how to build up such answer messages in WF XML?

Thanks in advance for the answers!!

Cheers

Jens