Oracle SOA Suite (MOSC)

MOSC Banner

TaskService - Unable to update priority

edited Sep 10, 2022 7:51AM in Oracle SOA Suite (MOSC) 1 commentAnswered

Hi,

I trying to update task priority with given code. But it's throwing below exception. 

It works fine if I changed from UpdatePriorityType.UPDATE to UpdatePriorityType.INCREMENT, but only it increments the priority rather than setting it to 99.


I have to update to a specific priority (99).


Any help is appreciated. Thank you!


PriorityIdsListType listType = new PriorityIdsListType();

listType.setUpdateType(UpdatePriorityType.UPDATE);

listType.setWorkflowContext(wfct);

listType.setPriority(99);

listType.getTaskId().addAll(taskIds);

taskService.updatePriorityOfTasks(listType);


Error

-----

com.oracle.xmlns.bpel.workflow.taskservice.WorkflowErrorMessage: 

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

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

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center