The generation of HTML-Workflows can be simplified by using the GeoMedia Smart Client Workflow Editor. You can call the editor from your browser at: http://yourServer.com/GMSC/workflows/editor
The easiest way to create a new workflow is done by using the Workflow-Editor:
- Start the Workflow-Editor (URL)
- Define the WorkflowEditorProjectFile (*.wepf) directory
Content of a *.wepf-File:
#Created by SmartClient WorkflowEditor - DO NOT EDIT THIS FILE #Mon Jul 18 13:15:52 CEST 2011 project.name=MyNewProject workflow.version=3.0 resourceSettings.dir=App_GlobalResources formSettings.dir=FormSettings workflowSettings.dir=WorkflowSettings
After defining the directory of the *.wepf file, the Workflow-Editor main window opens:
At the top of the main window the user can switch between the FormSettings.xml and WorkflowSettings.xml (red bordered in the following figure).
In the WorkflowSettings.xml the user defines the hierarchical application logic (see Chapter Workflow) whereas in the FormSettings.xml the user defines the graphical user interface of the workflow application (see Chapter Form).
There are basically two cohesive modes:
The first one allows the user to specify the elements without any XML knowledge, whereas in the second the user is able to modify the corresponding XML file.
|Design mode||Source mode|
There are two tabs to switch between the modes (red bordered in the following figure).
At the bottom of the Workflow-Editor window there are two more tabs, which gains more information for the user. On the one hand is the Properties tab and on the other the Problems tab. The first one shows every possible attribute which can be used for each element and the user has also the possibility to type in Values, which are automatically shown in the main window afterwards.
At the Problems tab, the user sees if the validation fails. To validate the XML file right click somewhere in the main window and then Validate (only available in the Source mode). If there is a problem with the validation the user can click on one problem and the program jumps automatically to this specific line.
On the right side of the main window is a tree named Outline. There are all elements listed and if the tab Source is active and the user double clicks on one element the program marks the element and it is much more easier to modify the specific element. The following figure shows an active FormField (on the left side) and the corresponding source code (on the right side).
The user can also change the project (File -> Change Project).
Right click in the main window and Preferences allows the user to change a few options regarding to the editor. These options are for example font color and font style or displaying line numbers in the editor. For this option you have to click in the Preferences window → General → Editors → Text Editors → Show line numbers. With the shortcut CTRL + SPACE the user gets possibilities for the next entry.
The Form Generator button is getting active, when the user is in the Source mode. How to switch between the modes is described above.
There is also a shortcut (CTRL + G) to start the Form Generator.
If the form generator is getting started, a window opens, where the database connection must be typed in (see figure above). There is the standard support for Oracle and MS-SQL Server. The entries are saved and if a new session is started the entries can be recalled (via a drop down list named Saved Sessions).
Select the tables which should be used in the workflow; click Next.
Select the columns which should be used in the workflow. In this window all attributes of the columns can be modified. After clicking Finish the FormSettings.xml gets an update with all selected tables, columns and attributes.
It is possible to write a workflow and to display it in a different language. For this step a resource file is needed. In the Workflow-Editor click Perspective → Resources Perspective to open up the resource editor. Click Perspective → XML Perspective to open the xml perspective again.
In the resource perspective you decide at first if you want to create a new resource file or edit an existing resource file. By clicking Create Resource (CTRL + R) you create a new resource file. There you decide at first in which language you want to have the resource file (drop down list) and then click OK. By clicking Open Resource you open an existing resource file to edit.
The first step in the new window is clicking Update Resources (CTRL + U). There the WorkflowEditor generates all possible resource keys, and when editing an existing resource file, it deletes the not used resource keys. The WorkflowEditor only updates the columns Key and Default Label so the user updated values will not harm.
In the column Value it is possible to change the display text into the language you have chosen before. If you finish with your resource file it is possible to save the resource file by click the Save Resource.
Folders for File-Storage:
- Form-File: MyNewProject.xml
- Workflow-File: MyNewProject.xml
- Ressources-File: MyNewProject-en.resx
- Referencing with: MyNewProject
Directory for the respective File:
- Form-File: In the FormSettings directory (for example, D:\Program Files\Intergraph\Program\Workflows\FormSettings)
- Workflow-File: In the WorkflowSettings directory (for example, D:\Program Files\Intergraph\Program\Workflows\WorkflowSettings)
- Ressource-File: In the Ressources directory (for example, D:\Program Files\Intergraph\Program\Workflows\App_GlobalResources)