Workflow
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
- TYPEVT = event type
- CODEVT = workflow rule code
- OPERAT = workflow rule operation
- CLEOBJ = object code(for object events)
Workflow tipo Entrata in funzione[edit]
- Create dummy function (in GESAFC): Example YMYFUNCTION
- Create workflow with type "Function Entry"
- 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