Hi,
I'am using JDev 11.1.1.9
BPM Editor 11.1.1.9.0.1.7
SOA Composite Editor 11.1.1.9.0.99.99
I want expire task after 1 day, for that I selected Expire After from Task Duration Setting and I selected By Expression in "Deadlines" for task
Expression is
xp20:add-dayTimeDuration-to-dateTime(xp20:current-dateTime(),'/task:task/task:payload/ns1:TestPayload/testDurationValue') and testDurationValue is getting from payload flowing this,
/task:task/task:payload/ns1:TestPayload/testDurationValue = P0Y0M1DT0H0M0S
or
/task:task/task:payload/ns1:TestPayload/testDurationValue = P1D
or
I tried direct set duration to expression like this, xp20:add-dayTimeDuration-to-dateTime(xp20:current-dateTime(),'P0Y0M1DT0H0M0S')
but I am getting exception.
Exception is
<WorkflowServiceEngine.request> Operation 'initiateTask' failed with WorkflowException 'Error in routing slip. |
| The expiration specified in the routing slip could not be evaluated. The error is java.lang.IllegalArgumentException: Make sure that the expiration duration is specified correctly. The value should conform to XML duration specifications. ', throwing BusinessFault with message: |
Where is my fault?
Can you help solve this issue?
Thanks.
Jack.