Defining Mobile Workflow Load Parameters from Mapped Propagate to Attributes

Create an MBO with at least one load parameter, map parameters as propagate to attributes, then assign the MBO to a cache group that uses an Online policy.

  1. From Unwired WorkSpace, create an MBO that has at least one load parameter. For example, you could define an Emp MBO as:
    SELECT   id,
      empName,
      empDeptId FROM sampledb.dba.emp
    WHERE empDeptId = :deptIdLP
    
  2. In the MBO Properties view, select the Load Parameters tab, map each load parameter to be used as an operation load parameter for the Mobile Workflow package to a Propagate to Attribute. This example requires you to map the deptIdLP load parameter to the empDeptId attribute. You must also verify that data types are INT and the default value is a valid INT.


    Unmapped parameters are set to NULL, and get their value from the default value, if specified, or from the personalization key value to which they are mapped, if specified. If the key is unmapped, and the parameter has no default value and is not mapped to a personalization key value, the parameter value is empty (NULL for string, 0 for numeric, and so on).

  3. Set the Online cache group policy for the MBO.
    1. Add the MBO to a cache group that uses the Online cache group policy. For example, create a new cache group named CacheGroupOnline and set the policy to Online.


    2. Drag and drop the MBO to CacheGroupOnline.
    The findByParameter object query is automatically generated based on all load parameters that have propagate-to attributes:



  4. Deploy the project that contains the MBO to Unwired Server. Select Message-based in the deployment wizard.