WorkflowClient.xml

The WorkflowClient.xml file defines all of an application's action mappings that correspond to selected MBO operations and named queries.

Below is part of an example of the generated WorkflowClient.xml for the create operation on the Department MBO. Since the department has a one-to-many relationship to the Employee MBO, all input mappings for Department MBO and Employee MBO are also defined.

<?xml version="1.0" encoding="utf-8"?>
<Workflow xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="WorkflowClient.xsd" >
  <Globals>
    <DefaultScreens activation="" credentials=""/>
  </Globals>
  <Triggers> 
    <Actions>
      <Action name="Department_create" sourcescreen="" targetscreen="" errorscreen="">
        <Methods>
          <Method type="replay" mbo="Department" package="apiTesttDepartmentOneToMany:1.0" showCredScreenOnAuthFailure="true" >
            <InputBinding optype="create" opname="create" generateOld="false">
              <Value sourceType="Key" workflowKey="Department_create_dept_id_paramKey" paramName="dept_id" attribName="dept_id" mboType="int"/>
              <Value sourceType="Key" workflowKey="Department_create_dept_name_paramKey" paramName="dept_name" attribName="dept_name" mboType="string"/>
              <Value sourceType="Key" workflowKey="Department_create_dept_head_id_paramKey" paramName="dept_head_id" attribName="dept_head_id" mboType="int"/>			    
              <Value sourceType="Key" workflowKey="Department_employees" relationShipName="employees" mboType="list">
                <InputBinding actiontype="create" optype="create" opname="create" generateOld="true">
                  <Value sourceType="Key" workflowKey="Employee_emp_id_attribKey" contextVariable="" paramName="emp_id" attribName="emp_id" mboType="int"/>
                  <Value sourceType="Key" workflowKey="Employee_manager_id_attribKey" contextVariable="" paramName="manager_id" attribName="manager_id" mboType="int"/>
                  <Value sourceType="Key" workflowKey="Employee_emp_fname_attribKey" contextVariable="" paramName="emp_fname" attribName="emp_fname" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_emp_lname_attribKey" contextVariable="" paramName="emp_lname" attribName="emp_lname" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_dept_id_attribKey" contextVariable="" paramName="dept_id" attribName="dept_id" mboType="int"/>
                  <Value sourceType="Key" workflowKey="Employee_street_attribKey" contextVariable="" paramName="street" attribName="street" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_city_attribKey" contextVariable="" paramName="city" attribName="city" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_state_attribKey" contextVariable="" paramName="state" attribName="state" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_zip_code_attribKey" contextVariable="" paramName="zip_code" attribName="zip_code" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_phone_attribKey" contextVariable="" paramName="phone" attribName="phone" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_status_attribKey" contextVariable="" paramName="status" attribName="status" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_ss_number_attribKey" contextVariable="" paramName="ss_number" attribName="ss_number" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_salary_attribKey" contextVariable="" paramName="salary" attribName="salary" mboType="decimal"/>
                  <Value sourceType="Key" workflowKey="Employee_start_date_attribKey" contextVariable="" paramName="start_date" attribName="start_date" mboType="date"/>
                  <Value sourceType="Key" workflowKey="Employee_birth_date_attribKey" contextVariable="" paramName="birth_date" attribName="birth_date" mboType="date"/>
                  <Value sourceType="Key" workflowKey="Employee_bene_health_ins_attribKey" contextVariable="" paramName="bene_health_ins" attribName="bene_health_ins" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_bene_life_ins_attribKey" contextVariable="" paramName="bene_life_ins" attribName="bene_life_ins" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_bene_day_care_attribKey" contextVariable="" paramName="bene_day_care" attribName="bene_day_care" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_sex_attribKey" contextVariable="" paramName="sex" attribName="sex" mboType="string"/>
                </InputBinding>
                <InputBinding optype="none">
                  <Value sourceType="Key" workflowKey="Employee_emp_id_attribKey" attribName="emp_id" mboType="int"/>
                  <Value sourceType="Key" workflowKey="Employee_manager_id_attribKey" attribName="manager_id" mboType="int"/>
                  <Value sourceType="Key" workflowKey="Employee_emp_fname_attribKey" attribName="emp_fname" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_emp_lname_attribKey" attribName="emp_lname" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_dept_id_attribKey" attribName="dept_id" mboType="int"/>
                  <Value sourceType="Key" workflowKey="Employee_street_attribKey" attribName="street" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_city_attribKey" attribName="city" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_state_attribKey" attribName="state" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_zip_code_attribKey" attribName="zip_code" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_phone_attribKey" attribName="phone" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_status_attribKey" attribName="status" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_ss_number_attribKey" attribName="ss_number" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_salary_attribKey" attribName="salary" mboType="decimal"/>
                  <Value sourceType="Key" workflowKey="Employee_start_date_attribKey" attribName="start_date" mboType="date"/>
                  <Value sourceType="Key" workflowKey="Employee_birth_date_attribKey" attribName="birth_date" mboType="date"/>
                  <Value sourceType="Key" workflowKey="Employee_bene_health_ins_attribKey" attribName="bene_health_ins" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_bene_life_ins_attribKey" attribName="bene_life_ins" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_bene_day_care_attribKey" attribName="bene_day_care" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_sex_attribKey" attribName="sex" mboType="string"/>
                </InputBinding>
                <InputBinding actiontype="update" optype="update" opname="update" generateOld="true">
                  <Value sourceType="Key" workflowKey="Employee_manager_id_attribKey" contextVariable="" paramName="manager_id" attribName="manager_id" mboType="int"/>
                  <Value sourceType="Key" workflowKey="Employee_emp_fname_attribKey" contextVariable="" paramName="emp_fname" attribName="emp_fname" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_emp_lname_attribKey" contextVariable="" paramName="emp_lname" attribName="emp_lname" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_dept_id_attribKey" contextVariable="" paramName="dept_id" attribName="dept_id" mboType="int"/>
                  <Value sourceType="Key" workflowKey="Employee_street_attribKey" contextVariable="" paramName="street" attribName="street" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_city_attribKey" contextVariable="" paramName="city" attribName="city" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_state_attribKey" contextVariable="" paramName="state" attribName="state" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_zip_code_attribKey" contextVariable="" paramName="zip_code" attribName="zip_code" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_phone_attribKey" contextVariable="" paramName="phone" attribName="phone" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_status_attribKey" contextVariable="" paramName="status" attribName="status" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_ss_number_attribKey" contextVariable="" paramName="ss_number" attribName="ss_number" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_salary_attribKey" contextVariable="" paramName="salary" attribName="salary" mboType="decimal"/>
                  <Value sourceType="Key" workflowKey="Employee_start_date_attribKey" contextVariable="" paramName="start_date" attribName="start_date" mboType="date"/>
                  <Value sourceType="Key" workflowKey="Employee_birth_date_attribKey" contextVariable="" paramName="birth_date" attribName="birth_date" mboType="date"/>
                  <Value sourceType="Key" workflowKey="Employee_bene_health_ins_attribKey" contextVariable="" paramName="bene_health_ins" attribName="bene_health_ins" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_bene_life_ins_attribKey" contextVariable="" paramName="bene_life_ins" attribName="bene_life_ins" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_bene_day_care_attribKey" contextVariable="" paramName="bene_day_care" attribName="bene_day_care" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_sex_attribKey" contextVariable="" paramName="sex" attribName="sex" mboType="string"/>
                  <Value sourceType="Key" workflowKey="Employee_emp_id_attribKey" contextVariable="" paramName="emp_id" attribName="emp_id" mboType="int"/>
                </InputBinding>
                <InputBinding actiontype="delete" optype="delete" opname="delete" generateOld="true">
                </InputBinding>
               </Value>

            </InputBinding>
            <OutputBinding/>
          </Method>
        </Methods>
      </Action>

By default, the MBO has two named queries—FindById and FindAll. The method, input and output binding keys, and all of the dependency’s key bindings are generated.

<Action name="Department_findByPrimaryKey" sourcescreen="" targetscreen="" errorscreen="">
        <Methods>
          <Method name="findByPrimaryKey" type="search" mbo="Department" package="apiTesttDepartmentOneToMany:1.0" showCredScreenOnAuthFailure="true" >
            <InputBinding optype="none" opname="findByPrimaryKey" generateOld="true">
              <Value sourceType="Key" workflowKey="Department_dept_id_attribKey" paramName="dept_id" attribName="dept_id" mboType="int"/>
            </InputBinding>
            <OutputBinding generateOld="true">			    
              <Mapping workflowKey="Department_dept_id_attribKey" workflowType="number" attribName="dept_id" mboType="int"/>
              <Mapping workflowKey="Department_dept_name_attribKey" workflowType="text" attribName="dept_name" mboType="string"/>
              <Mapping workflowKey="Department_dept_head_id_attribKey" workflowType="number" attribName="dept_head_id" mboType="int"/>
              <Mapping workflowKey="Department_employees" workflowType="list" relationShipName="employees" mboType="list">
                 <Mapping workflowKey="Employee_emp_id_attribKey" workflowType="number" relationShipName="employees" attribName="emp_id" mboType="int"/>
                 <Mapping workflowKey="Employee_manager_id_attribKey" workflowType="number" relationShipName="employees" attribName="manager_id" mboType="int"/>
                 <Mapping workflowKey="Employee_emp_fname_attribKey" workflowType="text" relationShipName="employees" attribName="emp_fname" mboType="string"/>
                 <Mapping workflowKey="Employee_emp_lname_attribKey" workflowType="text" relationShipName="employees" attribName="emp_lname" mboType="string"/>
                 <Mapping workflowKey="Employee_dept_id_attribKey" workflowType="number" relationShipName="employees" attribName="dept_id" mboType="int"/>
                 <Mapping workflowKey="Employee_street_attribKey" workflowType="text" relationShipName="employees" attribName="street" mboType="string"/>
                 <Mapping workflowKey="Employee_city_attribKey" workflowType="text" relationShipName="employees" attribName="city" mboType="string"/>
                 <Mapping workflowKey="Employee_state_attribKey" workflowType="text" relationShipName="employees" attribName="state" mboType="string"/>
                 <Mapping workflowKey="Employee_zip_code_attribKey" workflowType="text" relationShipName="employees" attribName="zip_code" mboType="string"/>
                 <Mapping workflowKey="Employee_phone_attribKey" workflowType="text" relationShipName="employees" attribName="phone" mboType="string"/>
                 <Mapping workflowKey="Employee_status_attribKey" workflowType="text" relationShipName="employees" attribName="status" mboType="string"/>
                 <Mapping workflowKey="Employee_ss_number_attribKey" workflowType="text" relationShipName="employees" attribName="ss_number" mboType="string"/>
                 <Mapping workflowKey="Employee_salary_attribKey" workflowType="number" relationShipName="employees" attribName="salary" mboType="decimal"/>
                 <Mapping workflowKey="Employee_start_date_attribKey" workflowType="date" relationShipName="employees" attribName="start_date" mboType="date"/>
                 <Mapping workflowKey="Employee_birth_date_attribKey" workflowType="date" relationShipName="employees" attribName="birth_date" mboType="date"/>
                 <Mapping workflowKey="Employee_bene_health_ins_attribKey" workflowType="text" relationShipName="employees" attribName="bene_health_ins" mboType="string"/>
                 <Mapping workflowKey="Employee_bene_life_ins_attribKey" workflowType="text" relationShipName="employees" attribName="bene_life_ins" mboType="string"/>
                 <Mapping workflowKey="Employee_bene_day_care_attribKey" workflowType="text" relationShipName="employees" attribName="bene_day_care" mboType="string"/>
                 <Mapping workflowKey="Employee_sex_attribKey" workflowType="text" relationShipName="employees" attribName="sex" mboType="string"/>
              </Mapping>

            </OutputBinding>
          </Method>
        </Methods>
      </Action>
Note: By default, the <Notifications> section of the generated WorkflowClient.xml is empty, so you must write the <Notification> section for a server-initiated Hybrid App.