If you have used the Form Builder to create a task form, then on the Settings tab you will be able to configure only the list of actions available to users in Web Application when they work with the user task (fig. 1).
Fig. 1. The Task settings window. The Form Settings tab.
Along with the list of actions, the page content settings become available to you (general information, tabs and buttons for task execution) if you select a Simple form to display the context variables. In this case, you are also able to specify a .NET Razor template file used to display the form (fig. 2).
Fig. 2. The Task settings window. The Form Settings tab.
The Page Menu contains a list of actions available to users in Web Application when they work with the user task. In this settings block, you can select the buttons that will be displayed on the task page in Web Application:
the Save item in the drop-down menu of the Action button allows you to save the input values of the task context variables (fig.3-1);
the Process Map allows you to view the full map of the business process, as well as the tasks completed in the current process instance;
the Actions button has a drop-down list with all options available to users: Save the input values, Reassign the task to another user, Ask a question, Add a comment or submit a time report on the current task. By clicking the list items a user can perform the respective actions in Web Application.
Fig. 3. The Web Interface elements configured in the Page Menu block.
In the Page Content block you can configure the display of the page content:
If you select General information about a task, users in Web Application will see Process Information above the task form (fig. 4-2);
If you select Tabs (Comments, Questions, History), the History tab will appear on the task form in Web Application, where users will be able to read and leave comments, ask questions and view the history of the task changes (fig. 4-3);
Task execution buttons (fig. 4-1 and fig. 4-4). If these buttons are hidden, you must place them in the .NET Razor template or provide a task escalation mechanism.
Fig. 4. The Web Interface elements configured in the Page Content block.
The Use Razor template setting allows you to customize the task interface in Web Application. After activating this setting, you must specify the path to the template file.
Templates are created in the .NET Razor markup. The template file extension must be cshtml. To create a template file you need to use an external editor, such as Microsoft Visual Studio, as the ELMA Designer does not contain tools for editing .NET Razor templates.
The template file must be placed in the configuration directory. We recommend using the following folder structure to store the properties template file of the user task:
In the configuration folder create the following folder structure:
WebApplication
Modules
EleWise.ELMA.BPM.Web.Tasks
Views
Task
Place the template file in the Task folder.
Thus it is recommended to create the following path to the .NET Razor template file for the user tasks properties: