Oracle SOA Suite (MOSC)

MOSC Banner

Query from WFTASK table using CASE, WHEN

edited Sep 5, 2022 2:30AM in Oracle SOA Suite (MOSC) 1 commentAnswered

Hi,

I need to query tasks from WFTASK table similar to the below SQL Query. How to build oracle.bpel.services.workflow.query.model.TaskListRequestType for the below query.

SELECT TASKID, TITLE, TEXTATTRIBUTE1, TEXTATTRIBUTE2

CASE

WHEN TEXTATTRIBUTE1= 'Test1' AND TEXTATTRIBUTE2='Test2' THEN 1

WHEN TEXTATTRIBUTE1= 'Value1' AND TEXTATTRIBUTE2='Value2' THEN 2

  ELSE 99

END AS Priority

FROM WFTASK;


Any help is appreciated. Thank you!

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