Set expiration duration as XPath

Advertisement
Hi,
I created a composite based on the logic explained Configure notifications in bpel . strExpirationDays value was set as 'PT2M' (2 minutes: for testing) but I am getting following error:
####<Jul 31, 2012 1:42:17 PM EEST> <Notice> <Stdout> <bubo.stadi.sonera.fi> <soa_server1> <orabpel.engine.pool-5.thread-13> <<WLS Kernel>> <a94ee5b878875ef9:-585c738d:138d742a694:-8000-000000000007cd54> <1343731337079> <BEA-000000> <<Jul 31, 2012 1:42:17 PM EEST> <Error> <oracle.soa.services.workflow.task> <BEA-000000> <<.> Error in routing slip.
The expiration specified in the routing slip could not be evaluated. The error is java.lang.IllegalArgumentException: false. The routing slip is associated with the task definition default/Type2AccessRequestApprovalProcess!1.0*soa_6e99bd77-937d-4378-b63a-a9332e543761/ApproverRoleTask.
Make sure that the expiration duration is specified correctly. The value should conform to XML duration specifications.
ORABPEL-30046
Error in routing slip.
The expiration specified in the routing slip could not be evaluated. The error is java.lang.IllegalArgumentException: false. The routing slip is associated with the task definition default/Type2AccessRequestApprovalProcess!1.0*soa_6e99bd77-937d-4378-b63a-a9332e543761/ApproverRoleTask.
Make sure that the expiration duration is specified correctly. The value should conform to XML duration specifications.
Could you please let me know if this type of configuration is supported?
Expression Used in .task: /task:task/task:payload/task:strExpirationDays
Thanks.
Advertisement

Replay

looking at the error i would guess you used a wrong format for the duration field notation?
can you paste the result of the xpath or the hardcode duration you used?
http://www.w3.org/TR/xmlschema-2/#adding-durations-to-dateTimes
3.2.6 duration
http://www.w3schools.com/schema/schema_dtypes_date.asp
Duration Data Type
you could also cast it to make sure it's a valid duration notation
xs:duration('P3D')