...
- Moduledescriptor.xml (not always necessary)
- (Module instance, eg. Create_Report.xml)
- ModuleInstanceDescriptors.xml
- (Workflow, eg. Report.xml)
- WorkflowDescriptors.xml
- TaskrunDialog.xml
Moduledescriptor
Make sure the report class is registered. This can be done in the file "\SystemConfigFiles\Moduledescriptors.xml". It is possible that this class is already registered.
...
Later we will expand this module instance.
Register the module instance
The module instance, that creates our simple report, needs to be registered with the other module instances. Therefore the following lines are added to the file "\RegionConfigFile\ModuleInstanceDescriptors.xml":
Code Block | ||||
---|---|---|---|---|
| ||||
<moduleInstanceDescriptor id="Create_Report">
<moduleId>Reports</moduleId>
</moduleInstanceDescriptor>
|
Info | ||
---|---|---|
| ||
|
Workflow for creating the report
...
Info | ||
---|---|---|
| ||
Notice that ModuleInstanceId refers to the name of the file that contains the module instance (ModuleConfigFiles\Create_Report.xml! |
Register the new workflow
The new workflow in the file "WorkflowFiles\report.xml" needs to be registered in the file "RegionConfigFiles\WorkflowDescriptors.xml":
Code Block | ||||
---|---|---|---|---|
| ||||
<workflowDescriptor id="report" forecast="false" visible="true" autoApprove="false">
<description>Creates web reports</description>
</workflowDescriptor>
|
Info | ||
---|---|---|
| ||
Notice that the WorkflowDescriptor Id is the same as the file which contains the workflow! In this case it is "report", which is the same as the file "\WorkflowFiles\report.xml"! |
Adding the workflow to the list of tasks
...