on 06-20-2014 7:50 AM
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.
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.
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/ActionResultCollection('1')</id>
<title type="text">ActionResultCollection('1')</title>
<updated>2014-06-20T06:20:34Z</updated>
<category term="WFHUBSERVICE.ActionResult" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<link href="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.
me too having the same issue.
Regars,
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You need to check the SAP account used when you execute the service. The WFHUBSERVICE uses the logon used and it can only execute the item when the workitem belongs to the ID used in the call. I have encountered the same issue and I was able to resolve it by making sure that the call was done by the user with the item assigned to that user. Or you can reassign the task to the user that you use when running the service.
Regards,
Ray
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi VENU G,
i got the same issue as you explained. i'm using the wfhubservice as well. before updating the gateway to from sp06 to sp08 everything works fine.
any solutions until now?
thank you.
Danilo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venu ,
The same issue I have faced, yes it's correct only ..
First read all the workitems using workflow collection , then filter the workflow item which is created recently and apply decision on that item id..
While creating workflow in swdd it will show some id and while trying to execute system will show different id.
So, after creating a new task in demoformabs, execute the get query on wokflowtask collection, then copy the recent work item and execute the apply decision .
this will help for sure .
Regards,
Lokeswar.
Hi Lokeswar,,
Do you implement any BADI for decision Handling. If Yes, i am not able to trigger the debugging point in BAdi Code. I did as u mentioned, but no luck. Still the error is getting to me Work item 000001895995 cannot be read.
could you please help. Here i am using WFHUBSERVICE ...
Regards,
Venu
Hi,
Have you also implemented BAdI /IWWRK/ES_WF_CUST_EXT_IB apart from /IWWRK/ES_WF_WI_BEFORE_UPD_IB as mentioned in http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/509c922a-aa9a-2f10-328c-d3814560d...
I tried to approve workitem in my system and was able to do it successfully. I got below success message and workitem got deleted from my inbox (SBWP)
Regards,
Chandra
Hi Chandra,
I implemented both the badis as per the document you mentioned.
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>
<category term="WFHUBSERVICE.ActionResult"scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<link href="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 showingWork item 000001895995 cannot be read..
Please check the First SCreen shot for the log.
When i created the workflow it shows the workitem id 1895995 is created. but the step id for absence approve is 48, so i used workitem id 1895997 for apply decision.
When i try to apply decision on workitem id 1895995, got error
<?xml version="1.0" encoding="utf-8" ?>
</errordetail>
</errordetail>
</errordetails>
</innererror>
</error>
Could you please check could be the reason for this error.
Thanks,
Venu
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.