NoahGochuico603609

UC4 V12 - EVENT JOB

Discussion created by NoahGochuico603609 on Jan 6, 2018
Latest reply on Jan 8, 2018 by NoahGochuico603609
Hi

There is been recurrent the problem of not update the variable VARA.BI_RMS_DEPENDENCES. If this variable is not equal on both values (value1 and value2) the job stay in long running.

we have an error on internal variable doesn’t allow the chain continue the normal flow

5d6p17wv9b5k.png

What happened was a failure in the internal mechanism of control of the following event jobs:

PE.EVENT.R3_PF.PHASE_3.SALES_AND_DEALS

 the object that fails is: PE.VARA.BI_RMS_DEPENDENCIES

 As you can see the values 1 and value 2 must be equals, and that is not happened on PE.EVENT.R3_PF.PHASE_3.SALES_AND_DEALS line.

Here's the process in process tab of the event job.

:set &NEXECUTION#=GET_VAR(PE.VARA.BI_RMS_DEPENDENCIES,"PE.R3_PF.PHASE_3.SALES_AND_DEALS",1)

:set &LEXECUTION#=GET_VAR(PE.VARA.BI_RMS_DEPENDENCIES,"PE.R3_PF.PHASE_3.SALES_AND_DEALS",2)

:if &NEXECUTION# > &LEXECUTION#

:  set &event=sys_act_parent_nr()

:  set &SKIPFLAG# = GET_STATISTIC_DETAIL(,CANCEL_FLAG, 'PE.RMS_SCD_132')

:  set &BLOCKCODE# = GET_STATISTIC_DETAIL(,STATUS, 'PE.RMS_SCD_132')

:  set &hnd=prep_process_var(PE.VARA.BI_RMS_UNBLOCK)

:  process &hnd

:   set &result#=get_process_line(&hnd, 1)

:  endprocess

:  if &BLOCKCODE# <> "1900"

:    if &result#="1899"

:      PRINT "Chain PE.R3_PF.PHASE_3.SALES_AND_DEALS was unblocked manually, skipping this event too"

:      PUT_VAR_COL PE.VARA.BI_RMS_DEPENDENCIES, "PE.R3_PF.PHASE_3.SALES_AND_DEALS", "2", &NEXECUTION#

:      set &cancel=cancel_uc_object(&event, 'ENDED_CANCEL')

:    else

:      PRINT "Chain PE.R3_PF.PHASE_3.SALES_AND_DEALS is blocked!"

:    endif

:  else

:    PRINT "Chain PE.R3_PF.PHASE_3.SALES_AND_DEALS finished its execution"

:    PUT_VAR_COL PE.VARA.BI_RMS_DEPENDENCIES, "PE.R3_PF.PHASE_3.SALES_AND_DEALS", "2", &NEXECUTION#

:    set &cancel=cancel_uc_object(&event, 'ENDED_OK')

:  endif

:else

:  PRINT "Chain PE.R3_PF.PHASE_3.SALES_AND_DEALS still running or aborted"

 

:endif


Thanks in advance.

Outcomes