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:

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