We are running several process of WorkFlows and after an instance crash we started having problems with them.
Some of the WorkFlows are looping in the following code.
<b>begin_method chequea_bloqueo_orden_servi changing container.
data:
order like aufk-aufnr,
bloqueo like regen-kennzx.
clear: order, bloqueo.
swc_get_object_key self order.
wait up to 120 seconds.
call function 'ENQUEUE_ESORDER'
exporting
mode_aufk = 'E'
aufnr = order
exceptions
foreign_lock = 1
system_failure = 2
others = 3.
if sy-subrc <> 0.
bloqueo = 'X'.
swc_set_element container 'Bloqueo' bloqueo.
exit.
endif.
call function 'DEQUEUE_ESORDER'
exporting
aufnr = order
_synchron = 'X'.
clear bloqueo.
swc_set_element container 'Bloqueo' bloqueo.
end_method.</b>
Is there any way to verify that the workflow is executing exactly this method?
We know that the object key is not blocked but we saw in the workflow log into the container the element 'Bloqueo' is flagged. Therefore the workflow continue in an infinite loop.
There is anyone that can help us...
Best regards.