on 09-22-2006 8:22 AM
Hi all,
I´m working in a very complicated BPM. I need to insert a wait step. My problem is that the time thati have to set up in the wait step is not a constant. I have the value from an operation that It has to be executed before.
Any idea?
Many thanks in advance
regards
Hi Noelia,
unfortunately I got a german version, so that the naming is eventually not correct.
The mode for wait steps can be
- period
- point of time.
If you use "point of time" you can assign a container element!
Suggestion: Calculate the point of time in a message mapping and assign the value to a target element.
Then - in your wait step - use mode "point of time" and assign the field of your mapped element.
Regards Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Noelia,
for a better understanding:
Asuming you have the following message mapping in your BPM
<source>
<sourceelement>
</source>
<target>
<targetelement>
</target>
Your mapping mapping would be:
<sourceelement> --> <targetelement>
Now enhance your target structure:
<target>
<targetelement>
<time> //type date
</target>
To map <time> (for the wait step) you use a UDF:
<b>----
</b>
Calendar cal = new GregorianCalendar();
int intHour24 = cal.get(Calendar.HOUR_OF_DAY); // 0..23
int intMin = cal.get(Calendar.MINUTE); // 0..59
int intSec = cal.get(Calendar.SECOND); // 0..59
int intMilSec = cal.get(Calendar.MILLISECOND);
intMin++; // time is set + 1 minute
String strTime = intHour24":"intMin":"intSec"."intMilSec;
return strTime;
<b>----
</b>
(I am not sure which format the wait step expects)
Now in the wait step set mode to - point of time.
The use the value help in the properies of the wait step and assign the payload of
<target>
<targetelement>
<b> <time></b> </target>
Hope this works.
Regards Mario
Hi, Mario. I am working with Noelia and we are locked with this issue.
We have a following message (as a result of a transformation) FECHA is an xsd:date and HORA is an xsd:time. The cardinality of every elements is 1..1:
<?xml version="1.0" encoding="UTF-8" ?>
<ns0:MT_Retraso_Entrada_Wait xmlns:ns0="http://empresa.es/xi/GRI/ExtraccionyCarga">
<row>
<FECHA>2006-10-25</FECHA>
<HORA>15:00:00.000</HORA>
</row>
</ns0:MT_Retraso_Entrada_Wait>
And we assing this values to the wait step but it doesn't work.
Has anybody any idea?
Thanks
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.