Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Gateway Workflow APPLY Decision Problem

$
0
0

Hi,

 

I'm trying to configure workflow consumption but I'm facing some issue. Can anyone guide me through the basic steps?


Here I am doing Central HUB Deployment to access the business workflow through Gateway services.

Here is the workflow log to the notification I have in SBWP.

 

I am using ‚demoformabs‛ by using its workflow ID WS70000704. For that i got one workitem ID.

wflog1.JPG

 

 

 

 

 

 

 

 

In SPRO Maintain Task Names and Decision Options, i configured workflow id and step ID as in second screen shot and decision keys as well.

 

approve.JPG

When i tried to get the workflow task Collection i am getting all the workitems in the service.

 

/sap/opu/odata/IWWRK/WFHUBSERVICE/WorkflowTaskCollection

 

Response

 

<id>http://<host>:<port>/sap/opu/odata/IWWRK/WFHUBSERVICE/WorkflowTaskCollection('000001895997')</id>

 

 

<title type="text">WorkflowTaskCollection('000001895997')</title>

 

 

<updated>2014-06-20T06:26:19Z</updated>

 

 

<categoryterm="WFHUBSERVICE.WorkflowTask" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')" rel="self" title="WorkflowTask" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/Description" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Description" type="application/atom+xml;type=entry" title="Description" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/Attachments" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Attachments" type="application/atom+xml;type=feed" title="Attachments" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/Comments" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Comments" type="application/atom+xml;type=feed" title="Comments" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/ExtensibleElements" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ExtensibleElements" type="application/atom+xml;type=feed" title="ExtensibleElements" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/DecisionOptions" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/DecisionOptions" type="application/atom+xml;type=feed" title="DecisionOptions" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/Participants" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Participants" type="application/atom+xml;type=feed" title="Participants" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/PossibleAgents" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PossibleAgents" type="application/atom+xml;type=feed" title="PossibleAgents" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/RelatedObjects" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/RelatedObjects" type="application/atom+xml;type=feed" title="RelatedObjects" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/$links/Description" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Description" type="application/xml" title="Description" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/$links/Attachments" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Attachments" type="application/xml" title="Attachments" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/$links/Comments" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Comments" type="application/xml" title="Comments" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/$links/ExtensibleElements" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ExtensibleElements" type="application/xml" title="ExtensibleElements" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/$links/DecisionOptions" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/DecisionOptions" type="application/xml" title="DecisionOptions" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/$links/Participants" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Participants" type="application/xml" title="Participants" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/$links/PossibleAgents" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/PossibleAgents" type="application/xml" title="PossibleAgents" />

 

 

<linkhref="WorkflowTaskCollection('000001895997')/$links/RelatedObjects" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/RelatedObjects" type="application/xml" title="RelatedObjects" />

 

 

<contenttype="application/octet-stream" src="WorkflowTaskCollection('000001895997')/$value" />

 

 

-<m:properties xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">

 

 

<d:workitem_id>000001895997</d:workitem_id>

 

 

<d:status>STARTED</d:status>

 

 

<d:status_txt>In Process</d:status_txt>


Now i am doing POST Operation  Apply Decision Functionality for Decision Handling for this work item, I implemented the Badi for this. /IWWRK/ES_WF_WI_BEFORE_UPD_IB

Query: /sap/opu/odata/IWWRK/WFHUBSERVICE/ApplyDecision?workitem_id='000001895997'&dec_key='0001'&comments='Approved Absence Request'

STATUS is 200, But

The Response is

<id>http://<host>:<port>/sap/opu/odata/IWWRK/WFHUBSERVICE/ActionResultCollection('1')</id>

<title type="text">ActionResultCollection('1')</title>

<updated>2014-06-20T06:20:34Z</updated>

<categoryterm="WFHUBSERVICE.ActionResult" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />

<linkhref="ActionResultCollection('1')" rel="self" title="ActionResult" />

-<content type="application/xml">

-<m:properties>

<d:result_code>1</d:result_code>

<d:reason>Work item 000001895995 cannot be read</d:reason>

</m:properties>

</content>

</entry>


Here I am applying decison on Workitem id 000001895997, but it is showing Work item 000001895995 cannot be read..

Please check the First SCreen shot for the log.


Help me in this to resolve.



 


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>