Creating a new workflow (How To)

From GeoMedia Smart Client
Jump to: navigation, search





This tutorial will show you how to create a new workflow if you are running Workflows outside of GeoMedia Smart Client.

1 Add a new connection string

test To the top Pfeil new.png

Add a new connection string to your Workflow.config file (which can be found under C:\Program Files\Intergraph\GeoMedia SmartClient\Program\Workflows\Workflow.config) for your desired database inside the connectionStrings element.

<connectionStrings>
  ...
</connectionStrings>

Oracle:

<connectionStrings>
  ...
  <add name="MyNewWorkflow" connectionString="Data Source=vie-sgi-dev01/orcl11;User ID=userid;Password=password;Self Tuning=false" providerName="Intergraph.Emea.Data.OracleProvider"/>
  ...
</connectionStrings>


Microsoft SQL Server:

<connectionStrings>
  ...
  <add name="MyNewWorkflow" connectionString="Data Source=vie-sgi-dev01;Initial Catalog=orgdb;User ID=userid;Password=password" providerName="Intergraph.Emea.Data.SqlServerProvider"/> 
  ...
</connectionStrings>



2 Create a new project in Workflow Editor

test To the top Pfeil new.png

Open the Workflow Editor (can be reached under http://server/GMSC/Workflows/Editor) and set the Workflow Wepf directory to C:\Program Files\Intergraph\GeoMedia SmartClient\Program\Workflows\MyNewWorkflow.wepf.

Edit your FormSettings:

<?xml version="1.0" encoding="UTF-8" ?>
<FormList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../XSD/Forms/FormSettings.xsd">
  <Form name="MyTestForm" table="MyTable" idfield="Id">
    <FormTab name="Tab">
      <FormGroup name="Group">
        <FormField name="Id" visible="hidden"></FormField>
        <FormField name="Name"></FormField>
      </FormGroup>
    </FormTab>
  </Form>
</FormList>

Edit your WorkflowSettings:

<?xml version="1.0" encoding="UTF-8" ?>
<WorkflowRoot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../XSD/Workflows/WorkflowSettings.xsd">
  <WorkflowNode id="MyTestWorkflow" controller="Form" form="MyTestForm"></WorkflowNode>
</WorkflowRoot>



3 Open workflow in browser

test To the top Pfeil new.png

Open your workflow under http://server/GMSC/Workflows/?workflow=MyNewWorkflow and you should see our previously created form.

If you want to use a GMSC workflow outside of GMSC you need to provide the site name and the project id in the querystring, so you have to add something like:
&WORKFLOW_PROJECT=YourProjectID&WORKFLOW_SITE=GMSC
The GMSC client automatically appends the site and project so you never need to worry about it in the Action definition.As soon as you need to digitize in a workflow you need the GMSC client.