cancel
Showing results for 
Search instead for 
Did you mean: 

Wait step in BPM

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Mario thank you for answer

I have one doubt, after the mapping to calculate the value for the wait step. I have to assing the result of the mapping to the container element?

thanks in advance

Noelia

Former Member
0 Kudos

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

Former Member
0 Kudos

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