Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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
xml
xml

<moduleInstanceDescriptor id="Create_Report">
	<moduleId>Reports</moduleId>
</moduleInstanceDescriptor>
Info
titleID
  • Notice that ModuleId refers to the ID of the Report class we registered in "\SystemConfigFiles\Moduledescriptors.xml"
  • Notice that the moduleInstanceDescriptor ID is the same as the name of the file that contains the settings for the module instance, in our example: "\ModuleConfigFiles\Create_Report.xml"

Workflow for creating the report

...

Info
titleID

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
xml
xml

<workflowDescriptor id="report" forecast="false" visible="true" autoApprove="false">
	<description>Creates web reports</description>
</workflowDescriptor>
Info
titleID

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

...