Hi all,
I am trying to create a workflow application and i would like to use WF-DCN without payload. Workflow application is a server initiated workflow application, which will send a notification to manager as soon as a employee requests for travel request to be approved. Once manager recieves notification he can update the request i.e. approve or reject.
As per the documentation i could see that the MBO needs to be placed in online cache policy. I have done the same and added a load parameter as mentioned in the documentation. PFB the definition of MBO.
SELECT trvl_Id,
trvl_Date,
trvl_Loc,
est_Cost,
purpose,
trvl_Status,
st_Cmmnt FROM sampledb.dba.TravelRequest1 where trvl_Id=:trvl_idLP
This MBO has 3 operations i.e UPDATE, DELETE, CREATE.
Definition of UPDATE operation is as mentioned below.
UPDATE sampledb.dba.TravelRequest1
SET
trvl_Date=:trvl_Date,
trvl_Loc=:trvl_Loc,
est_Cost=:est_Cost,
purpose=:purpose,
trvl_Status=:trvl_Status,
st_Cmmnt=:st_Cmmnt
WHERE (trvl_Id = :trvl_Id)
commit
PFB the URL which i am using to send a WF-DCN (without payload)
http://localhost:port/dcn/DCNServlet?cmd=wf&security=admin&username=supAdmin&password=s3pAdmin&domain=default&package=Sample_Workflow1&dcn_request={"id":"abca","op":":update","to":"pavan","subject":"Vacation request (4) is ready for approval","from":"user321","body":"This is a message just used to do a test","received":"2013-04-20T10:07:45+05:00","read":false,"priority":true}
Once i paste the link in browser, i get a success message as mentioned below
{"id":"abca","success":true,"statusMessage":"","result":[]}
Problem is i dont get a notification on the device. In SCC, Transform Items will be 1 and Transform Queue status will be Waiting to retry.
Please let me know how to go about it..