Unable To Obtain a BPEL IWorkFlowContext Using a SSO Authenticated Request (Doc ID 445046.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle(R) BPEL Process Manager - Version: 10.1.3.0.0 to 10.1.3.1.0
This problem can occur on any platform.

Symptoms

You try to get a HumanWorkFlow Tasklist from BPEL 10.1.3.1 in an ADF(10.1.3)Webapplication which is configured using SSO.

You initially try to authenticate against the ITaskQueryService and able to get the tasks of a specific user .This type of hardcoded authentication is not applicable.

Hence, you try the following code to create a IWorkflowContext :

But you encounter the ctx value to be <null>.

The ITaskQueryService is not able to create a IWorkflowContext from an authenticated request.

client =
WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFacto
ry.REMOTE_CLIENT);
taskQueryService = client.getTaskQueryService();
ctx = taskQueryService.createContext(req);

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms