- Workflow Enabled
- Workflow Datasource
which is used to indicate, that the current form has workflow enabled and which datasource of the form is the workflow datasource. This of course means, that a form only can show workflow for one datasource.
Besides the new properties, there is also a new method canSubmitToWorkflow, which is used to determine if current record has submitted to a workflow.
In some of Microsoft examples the methods is set to return true, but this means it will always submit to a workflow, even if it has already submitted the current record. It also means that you will not be able to track the state of the workflow, since it is always submitting.
What you need to do, it to implement a state field on the datasource to keep track if it has been submitted.