CookBook

How to user program pre - and post-processing of IM-FormaDesigner created in logic flow

Posting Date:

In this lesson, we will show how to user program pre - and post-processing of IM-FormaDesigner created in logic flow.

In sample, by using the user program pre - and post-processing which is updated user profile in Workflow.
Acquires the profile information of login user on the previous process of application screen.
Moreover, it has realized by performing the update of profile as a post process of approval screen changes.

Completion Image


1. Acquires the information of the user profile in the Apply/Process.
2. Updates the information of the user profile in the approval process.
3. IM-Common Master profile set/updated.

  • Application screen
  • Approval screen
  • Settings of IM-Common Master profile after update
  • Finished Example

    Take advantage download and the following and it will be complete. sample.

  • LogicDesigner
  • Please import from the import function of LogicDesigner.
    [IM-LogicDesigner User Operations Guide] - [Import]
    im_cookbook_162290_logicdesigner-data

  • Workflow
  • Zip file is expanded to arbitrary folder, please import using the import function of IM-Workflow.
    [IM-Workflow Administrator Operations Guide] - [Do the Import/Export]
    im_cookbook_162290_workflow-data

  • Forma application
  • Please import from the import function of Forma application.
    [IM-FormaDesigner for Accel Platform Creator guide] - ["application information import" Function of screen and description of each part]
    im_cookbook_162290_forma

    Recipe

    1. Is created of Pre-processing/Post-processing logic flow.
    2. To create a Forma application.
    3. Set of Pre-processing/Post-processing by the user program.
    4. To create a workflow.
    5. Set/update user profile of WF form.

    1. Is created of Pre-processing/Post-processing logic flow.

    Create pre - and post-processing logic flow in IM-LogicDesigner.

    Flow definition ID
    Pre-processing im_cookbook_162290_flow_pre_processing
    Post-processing im_cookbook_162290_flow_post_processing

    im_cookbook_162290_flow_pre_processing (pre-processing)

    First, then input/output settings/constant settings.

    (1) Click "Input and Output Settings (input/output setting) ".

    Please set the parameter information that is passed to the input/output value.

  • Details of procedure to implement Pre-processing program, please refer to the following documentation:
  • [IM-FormaDesigner Programming Guide] - [Pre-processing] - [Logic flow]

    : Enter a document as above
    Please add the output: below.
    ・Data <object type>

    Name Type
    userCd string
    address1 string
    emailAddress1 string
    telephoneNumber string

    ・Error <boolean type>

    (2) Click "Constrant Settings (constant setting) ".

    Add below.

    Constant ID Constant value
    false false

    And then mapping "Acquisition of user profile” task.

    Please mapping of the table below left and right column.

    userProfile/userCd im_immGetProfile1/userCd

    Finally, the mapping "end” task.

    Please mapping of the table below left and right column.

    Constant/false error
    userProfile/address1 address1
    userProfile/emailAddress1 emailAddress1
    userProfile/telephoneNumber telephoneNumber
    userProfile/userCd userCd

    im_cookbook_162290_flow_post_processing (post-processing)

    (1) Please set the parameter information that is passed to the input/output value from "Input and Output Settings (input/output setting) ".

    : Enter a document as above (moreover sendParm, please add the following table)

    ・SendParam <object type>

    Name Type
    address1 string
    emailAddress1 string
    telephoneNumber string

    Output: document as above

    Please add the following table to a ➁ "Constrant Settings (constant setting) ".

    Constant ID Constant value
    ja ja
    false false

    And then mapping "Multilingual information update” task.

    Please mapping of the table below left and right column.

    sendParam/address1 im_immUpdateLocalizedProfile1/address1
    sendParam/emailAddress1 im_immUpdateLocalizedProfile1/emailAddress1
    sendParam/telephoneNumber im_immUpdateLocalizedProfile1/telephoneNumber
    Constant/ja im_immUpdateLocalizedProfile1/targetLocale
    Session information/systemDate im_immUpdateLocalizedProfile1/targetDate
    User context /userProfile/userCd im_immUpdateLocalizedProfile1/userCd
    User context /userProfile/userName im_immUpdateLocalizedProfile1/userName
    User context /userProfile/userSearchName im_immUpdateLocalizedProfile1/userSearchName

    Finally, the mapping "end” task.

    Please mapping of the table below left and right column.

    Constant/false error

    2. To create a Forma application.

    Create Forma application.
    Application type is set "IM-Workflow".
    ・Forma application

    Item using a text box, please set the table below for reference.
    ※Please select display type "approval" of all text box in "enterable".

    Field ID of each item Enter as shown below.

    Field ID userCd
    Field ID address1
    Field ID emailAddress1
    Field ID telephoneNumber

    Moreover, please do the WF relation setting.

    3. Set of Pre-processing/Post-processing by the user program.

    Settings from the "form setting/Edit" - "form list" - "user program list" of Forma application. Then, please enter the table below.
    ・Pre-processing program (application)

    Program type Logic flow
    Flow definition im_cookbook_162290_flow_pre_processing

    ・Post-processing program (update)

    Program type Logic flow
    Flow definition im_cookbook_162290_flow_post_processing

    4. To create a workflow.

    ・Workflow

    Please select the created contents definition and route definition in the flow definition.

    5. Set/update user profile of WF form.

    Processed in application/approval screen, make sure that the user profile is set/updated.

    -CookBook
    -,

    Author:


    comment

    Field that does not mail address is published. * is attached is required item

    Related article

    no image

    To create Docker of Resin.

    In this lesson, we will show For the steps needed to create a Docker of Resin. Create Docker image of the created Resin of the recipe base image, please execute 1. Base…

    no image

    How to global navigation to hide after page transition

    In this lesson, we will explain how to global navigation to hide after page transition. Please use if you want to hide global navigation after page transition in a special reason. In addition, iframe…

    no image

    How to file output information of the console) that are output to the debug server startup time

    In this lesson, contents that was just generated on the console at the time of use of debug server by e Builder, how to be output in separate the specified file is introduced. Completion image 1. to the specified file…

    no image

    To control the person responsible for processing from a Forma script

    In this lesson, this lesson, we will show you a tip to control processing target of dynamic node (dynamic approval, arrange vertically, arrange horizontally) of IM-Workflow by using script. come to be used by the dynamic process person setting function from the script…

    no image

    How to validate hidden elements with imuiValidate

    In this lesson, we will show how to validate hidden elements with imuiValidate. This time for input items in the imuiGadgetBar is closed, client…

    There is no data yet.

    RSSRSSRSSRSS