Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Updating BPM 12c payload from ADF

Carlos CortezMay 17 2016 — edited May 17 2016

Hello to all,

I'm trying to update BPM payload from ADF, i found the following code for BPM 11g that must be implemented in a managed bean:

FacesContext context = FacesContext.getCurrentInstance();

String ctx = (String) context.getApplication().evaluateExpressionGet(context, "#{pageFlowScope.bpmWorklistContext}", String.class);

String tskId = (String)context.getApplication().evaluateExpressionGet(context, "#{pageFlowScope.bpmWorklistTaskId}", String.class);

IWorkflowServiceClient workflowSvcClient = WorkflowService.getWorkflowServiceClient();

ITaskQueryService wfQueryService = workflowSvcClient.getTaskQueryService();

IWorkflowContext wfContext = wfQueryService.getWorkflowContext(ctx);

Task myTask = wfQueryService.getTaskDetailsById(wfContext, tskId);

XMLElement xmlPayload = (XMLElement) myTask.getPayloadAsElement();

When i try to use the previous code in JDev 12c i get a message saying that the method "getWorkflowServiceClient" does not exist:

payload.png

Does anybody knows if this method has a replacement? or which code should i use to modify the payload in BPM 12c ??

By the way i'm using BPM 12c 12.2.1

Regards

Carlos

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2016
Added on May 17 2016
4 comments
1,332 views