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

    How to communication by using of IMBox chat in process screen of IM-BIS

    In this lesson, we will show how to communication by using of IMBox chat in process screen of IM-BIS. In this paper, please create the Direct Message (or later DM) of IMBox in the matter unit,…

    no image

    By using Docker Swarm is built Clustering Payara.

    In this lesson, by using Docker Swarm are introduced For instructions on how to build Clustering Payara. cluster of intra-mart Accel Platform…

    no image

    Introducing close Functions that can be used in script development

    In this lesson shows how you can work close Functions that can be used in script development. I think define the function named init during of the created js file in Script Development, this…

    How to set the title of any to the browser toolbar in IM-FormaDesigner

    In this lesson, we will show how to set the title of any in the browser toolbar in IM-FormaDesigner. Setting methods are the following 2 patterns. "script" item envoy…

    no image

    To maintain session in the execution screen of Forma

    In this Cookbook, how to maintain session in the execution screen of IM-FormaDesigner are described. automatic… if you use this method, normal login session that may time out depending on the time limit

    There is no data yet.

    RSSRSSRSSRSS