过期日期格式错误,此过期日期将被忽略
我创建了一个具有等待活动的 BPEL 流程,有流程开始时间(日期时间)和间隔(持续时间)的输入。在进程中创建实例(工作项)时,它移动到等待状态,在控制台上我收到错误:
<Mar 23, 2011 9:27:53 PM SGT> <Error> <oracle.soa.bpel.engine.bpel> <BEA-000000>
<<BPELReceiveWMP::__defineExpirationDate> Bad expiration date format, and this
expiration date will be ignored
java.lang.IllegalArgumentException: Duration has to start with 'P'.
进程的输入有效负载是:
<inputVariable> <part name="payload"> <ns1:process> <ns1:startDate>2011-03-23T16:30:00.000+08:00</ns1:startDate> <ns1:interval>PT2M</ns1:interval> </ns1:process> </part> </inputVariable>
并且在等待中已放入
字符串(bpws:getVariableData('inputVariable','payload','/client:process/client:startDate'))
表达式
WaitForStart(待定) 2011 年 3 月 23 日 9:27:53 PM 错误的到期日期“2011-03-23T16:30:00.000+08:00” Mar 23, 2011 9:27:53 PM 等待到期时间“从不”。
环境是: 面向服务架构11.1.1.3.0 J开发者:11.3
I have created a BPEL process with wait activity, there are input for process start time (datetime) and interval(duration). while creating an instance(workitem) in process, it moves to wait and on console i got the error
<Mar 23, 2011 9:27:53 PM SGT> <Error> <oracle.soa.bpel.engine.bpel> <BEA-000000>
<<BPELReceiveWMP::__defineExpirationDate> Bad expiration date format, and this
expiration date will be ignored
java.lang.IllegalArgumentException: Duration has to start with 'P'.
Input payload for process is:
<inputVariable> <part name="payload"> <ns1:process> <ns1:startDate>2011-03-23T16:30:00.000+08:00</ns1:startDate> <ns1:interval>PT2M</ns1:interval> </ns1:process> </part> </inputVariable>
And in wait have putted
string(bpws:getVariableData('inputVariable','payload','/client:process/client:startDate'))
expression in "for" column
WaitForStart (pending)
Mar 23, 2011 9:27:53 PM Bad expiration date "2011-03-23T16:30:00.000+08:00"
Mar 23, 2011 9:27:53 PM Waiting for the expiry time "never".
environment is:
SOA 11.1.1.3.0
Jdeveloper: 11.3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果输入是“2011-03-23T16:30:00.000+08:00 PT2M”,问题就很清楚了。第一部分是日期时间,第二部分是持续时间。 BPEL 中的元素需要一个持续时间,因此它的值应该只是“PT2M”,这意味着 2 分钟。字符串的第一部分对我来说看起来是错误的。
If the input is "2011-03-23T16:30:00.000+08:00 PT2M" the problem is quite clear. The first part is dateTime while the second part is a duration. The element in BPEL expects a duration, so its value should be just "PT2M", which means 2 minutes. The first part of the string looks erroneous to me.