Framework:Workflow Manager: Difference between revisions
No edit summary |
No edit summary |
||
| Line 185: | Line 185: | ||
[[image:Fw_WFM08.jpg|thumb|center|Framework, Workflow-Wizard, create action]] | [[image:Fw_WFM08.jpg|thumb|center|Framework, Workflow-Wizard, create action]] | ||
If you select the option „Define action“, you can create an individual action. For example an action can be open a mask or dimension. Additionally actions can execute formulas or imports. | If you select the option „Define action“, you can create an individual action. For example an action can be open a mask or dimension. Additionally actions can execute [[Framework:Formulae|formulas]] or [[Framework:Imports|imports]]. | ||
“Windows start area” offers the possibility to define the area, where the action will be executed. | “Windows start area” offers the possibility to define the area, where the action will be executed. | ||
Revision as of 10:14, 1 June 2010
You can design workflows that add application logic to your application without having to write custom code. Using the Workflow Manager, you create rules that associate conditions and actions with items, so that changes to items trigger actions in the workflow.
The basic steps of creating a workflow are always the same: First you define the workflow, and then you create the rules by choosing conditions and actions.
Open the Workflow Manager with the button
in the category “Manager”.

Elements and functions
Ribbon

The ribbon contains the following options:
Workflow Manager
Workflow-Tree
The workflow tree contains all workflows. Here you create new workflows or edit an existing one. The context menu of the Workflow tree contains the following options:
- New Workflow
A new workflow will be created and the Workflow Wizard opens. If this command isn’t active, please verify if the Workflow Manager is checked out. - Edit
An existing workflow can be edited. If the command “Open” is available, you can open the Workflow-Wizard. It is not possible to edit the workflow, because the Workflow Manager isn’t checked out. - Refresh
Gets the actual data form CoPlanner server. - Delete
Delete a workflow. - Copy workflow
You can copy a workflow with all tasks. Following dialog box will be displayed:
- New Workflow

You can insert a new name, select a new scenario and set a new start date of the workflow. All start and end dates of this workflow will be adjusted.
Workflow detailed view
The workflow overview shows you either a list of all workflows or the detailed information of the selected workflow.
Workflow-Wizard
The Workflow-Wizard helps you to create and edit workflows. The possibilities and functions of the Workflow-Wizard will be explained with an example. A workflow will be created with several tasks.
| Input Activate the element “Workflows” and select the command “New workflow” from the context menu. |
The Workflow-Wizard opens.

The Workflow Wizard contains three areas:
Area „General“
This field allows you anytime to change the name of the workflow, select a scenario, edit the start and end date and change the state of the workflow.
Workflow caption
This field allows you anytime to change the name of the workflow. The name has to be unique.
| Input Enter the caption „Contribution margin planning“. |
Selection of scenario
Select a scenario for this workflow.
| Input Select scenario “Forecast 2010“. |
State
Use this option to activate the workflow or deactivate it.
Selection of period
Here you define the start and end date of the workflow. All further tasks have to be within this period.
| Input In this example the planning starts on 23.03.2010 and ends on 30.03.2010. |
Selection of the workflow administrator
This setting is optional. If you select a workflow administrator, this CoPlanner user will get all messages, which will be sent by the CoPlanner server.
| Hint If there is an incorrect input a blue icon will appear beside this field. Move the mouse over this icon and you get a hint to make any necessary adjustments. |

In this example the end date of the workflow has moved and so the end date of the task is after the end date of the workflow. The area “General” looks like the following:

| Input Activate area „Tasks“. |
Area „Tasks“
In this area you create the tasks of the workflow and define actions, conditions and users.

List of tasks
In this area you can create new tasks, delete existing tasks, change the order of the tasks and reset the state of all users.
Buttons of the command bar:
| Create task | |
| Move up element | |
| Move down element | |
| Reset state of all users |
| Input Click the button “Create task“, insert following text “Revenue planning” and confirm your input. |
Because of the confirmation the settings of this task will be editable.
Settings of task ‘Revenue planning‘
Action
This action will be executed if the user clicks on the task. All navigation actions are available.
| Input Click the button „Edit“ |

If you select the option „Define action“, you can create an individual action. For example an action can be open a mask or dimension. Additionally actions can execute formulas or imports.
“Windows start area” offers the possibility to define the area, where the action will be executed.
- Structure
A further tab in the navigation structure - Work
A further document in the working area
- Structure
Start and End
As start and end date the start and end date of the workflow will be suggested.
| Input Choose 25.03.2010 as end date of this task. |
Period of grace
This setting allows defining a period of grace of each task.
In case out of time
With this setting you can define, what happens after the end of a task. Following possibilities are available:
- Lock task
Effect: This and all depending tasks are locked and not allowed to edit. - Show finished
Effect: The task will be released by system. Depending tasks can be edited. - No Action
Effect: The end date will be ignored.
- Lock task
Previous task
Define a task, which has to be completed before this task can start. Available are all defined tasks in this workflow.
Continuation condition
If you have selected a previous task, you define the corresponding continuation condition in this field. Following possibilities are available:
- User finished previous task
Effect: This task can be edited as soon as the user completes his previous task. - All users finished previous task
Effect: This task can be edited as soon as all users complete the previous task.
- User finished previous task
| Hint Editing of this task is only possible, if the condition of the previous task is completed. |
Reviewer
Define a reviewer and an end date, who has to edit this task after the user has approved the task.
Additionally you can give a reviewer the permission, to change data. Furthermore you can select a deputy of the reviewer.
| Input Select “Administrator” from the CoPlanner list, end date: 27.03.2010. |
User of the task ‘Revenue planning‘
In this area you attach users to the task. These users get this task in their workflow panel.
| Input Click the button “Add or remove user” |
Dialog box “User selection” opens.

With double-click you can select a user or remove a user from the list “Selected user”.
| Input Double-click user “Max Muster” and confirm with „OK“. |
The area “Tasks” looks like the following:

Next step is to create the task “Variable costs planning”. Define following settings:
| Input Caption: „Variable costs planning“ Action: „Control/Planning/Profit and loss planning on monthly basis/Variable Costs“ |

Area „Overview“
In this area you see a list of all users and the level of completion.

| Input Confirm with a click on the button „Apply“. |
In the Workflow Manager this workflow looks like the following:

Display of the workflow in CoPlanner
The workflow “Contribution Margin Planning” looks like the following in CoPlanner:

This example starts on 23.03.2010.


To continue the example today is 27.03.2010.

E-mail notifications
The Workflow Manager offers the possibility to send e-mails. According to the configuration, e-mails will be sent to the user, reviewer and administrator.
Trigger for an e-mail
In case of following events an e-mail will be sent:
| Event | User | Reviewer | Administrator | Trigger |
| Start date reached | Yes | Yes | (A) | |
| User „Task released“ | Yes | Yes | Yes | (B) |
| End date forthcoming | Yes | (A) | ||
| End date reached | Yes | Yes | (A) | |
| Period of grace forthcoming | Yes | (A) | ||
| Period of grace reached | Yes | Yes | (A) | |
| Reviewer „Task released“ | Yes | Yes | Yes | (B) |
| Reviewer „Task reopened“ | Yes | Yes | Yes | (B) |
| Reviewer end date forthcoming | Yes | (A) | ||
| Reviewer end date reached | Yes | Yes | (A) | |
| Reset tasks | Yes | Yes | Yes | (B) |
Legend:
- Automatic (A)
- User action (B)
Following setting has to be available in "CopServer.exe.config" or "CopService.exe.config" to use e-mails:

You find detailed information to configure this file in the technical manual. Automatically e-mail by the CoPlanner server will be sent one day before the event.
E-mail content
The content of the e-mails is freely configurable. Open the file “WorkflowMessages.xml” from the CoPlanner folder “\server\CommonFiles”.
An entry of an e-mail contains two tags, one for the subject and the other for the message. Please note following notation:

E-mails can be sent for following events:
| Event | AttribID |
| Reviewer “Task reopened” | WorkFlowReOpenedByReviewer_Subject
WorkFlowReOpenedByReviewer_Body |
| User “Task released” | WorkFlowFinnishedByConstributor_Subject
WorkFlowFinnishedByConstributor_Body |
| Reviewer “Task released” | WorkFlowFinnishedByReviewer_Subject
WorkFlowFinnishedByReviewer_Body |
| Reset task | WorkFlowTaskResetted_Subject
WorkFlowTaskResetted_Body |
| Start date reached | WorkFlowTaskStartingTodayMsg4Constributor_Subject
WorkFlowTaskStartingTodayMsg4Constributor_Body |
| End date forthcoming | WorkFlowTaskEndsTomorowMsg4Constributor_Subject
WorkFlowTaskEndsTomorowMsg4Constributor_Body |
| End date reached | WorkFlowTaskEndsTodayMsg4Constributor_Subject
WorkFlowTaskEndsTodayMsg4Constributor_Body |
| End date reached | WorkFlowTaskEndsTodayMsg4Admin_Subject
WorkFlowTaskEndsTodayMsg4Admin_Body |
| Period of grace forthcoming | WorkFlowTaskRespiteEndsTomorowMsg4Constributor_Subject
WorkFlowTaskRespiteEndsTomorowMsg4Constributor |
| Period of grace reached | WorkFlowTaskRespiteEndsTodayMsg4Constributor_Subject
WorkFlowTaskRespiteEndsTodayMsg4Constributor_Body |
| Period of grace reached | WorkFlowTaskRespiteEndsTodayMsg4Admin_Subject
WorkFlowTaskRespiteEndsTodayMsg4Admin_Body |
| Reviewer end date reached | WorkFlowTaskReviewtimeEndsToday_Subject
WorkFlowTaskReviewtimeEndsToday_Body |
| Reviewer end date forthcoming | WorkFlowTaskReviewtimeEndsTomorrow_Subject
WorkFlowTaskReviewtimeEndsTomorrow_Body |
You can use following constants in the message:
| Constant | Description |
| $Date | Actual date |
| $TaskName | Name of the tasks |
| $Planer | Responsible user/reviewer |
| $Message | Comment inserted by user/reviewer |
| $NewLine | Linefeed |
| $AllPlaner | All users of a task |
Example tags of the event – Reviewer “Task reopened”









