Workflow

From SageDev KB
Jump to navigation Jump to search

Raggiungibile da menu Parametrizzazione → Workflow → Regole Workflow (da F7 GESAWA)


Per richiamare un workflow da codice:

Call WORKFLOW(TYPEVT,CODEVT,OPERAT,CLEOBJ) from AWRK
  1. TYPEVT = event type
  2. CODEVT = workflow rule code
  3. OPERAT = workflow rule operation
  4. CLEOBJ = object code(for object events)

Workflow tipo Entrata in funzione[edit]

  1. Create dummy function (in GESAFC): Example YMYFUNCTION
  2. Create workflow with type "Function Entry"
  3. Put this piece of magic in the entry point:
Call WORKFLOW ("F_<function code>","","") From SUBAMSC

Example: Call WORKFLOW ("F_YMYFUNCTION","","") From SUBAMSC


Workflow per Import/export[edit]

Queste sono le due chiamate effettuate in fase di export dal sistema;

  • ED significa all'inizio dell'Export
  • EF significa alla fine dell'Export
Call WORKFLOW(8,[M:EXP2]MODELE,"ED","") From AWRK
Call WORKFLOW(8,[M:EXP2]MODELE,"EF","") From AWRK