Workflow Processing - v22-appfactory/appfactory-wiki GitHub Wiki
Currently all workflow processing occurs when submitting data from a form and doing an add or update to the form table. The form data must contain a field indicating what Workflow State is involved; an add requires an 'issuetypeid' and an update requires a 'statetransitionid'. The state processing steps are the following:
- Check for required state field: add/issuetypeid or update/statetransitionid. [appformController.js]
- Check the form table for whether it is an 'Issue' table and has a flag set to indicate that the table has workflow state. [procedure: appformGetFromTables]
- Get the workflow state data by calling procedure workflowStateTransition and adds state data (workflowstateid and workflowactionid) to the request data.
- Call form add/update procedure: formRecordAdd or formRecordUpdate.
- The procedures return the results of a query on the table row (formRecordFindById) and adds the 'request' and 'state' data to the result.