Search Results for

    Show / Hide Table of Contents

    Create edit-object workflow

    Introduction

    In previous tutorials, you already learn how to create add-object workflow and also how to create a button to trigger the workflow.

    In this tutorial, you will continue to define a edit-object workflow called "Edit book."

    This edit action, as well as add and delete, are the fundamental functions that any application should be able to do.

    Guide

    • Step 1. In Casewhere Admin site, navigate to Workflow Definition

    • Step 2. Click Create button

    The Create New Workflow definition dialog will appear

    • Step 3. Config General setting tab as below
    Field name Actions
    Name Fill in "Edit book"
    Display Name Fill in "Edit book"
    Used For Creating New Cases Make sure this field is uncheck ☐
    Accept Input ☑
    Require Input ☑
    Window Size Select Medium

    image-20211112113826094

    • Step 4. Switch to Data classes tab

    Click Select data classes drop-down, and select "CwBook"

    image-20211110114226401

    Click Save

    • Step 5. Edit Workflow Definition: Edit book dialog will display

    Drag and drop Form activity definitions from Add Activity Definitions panel to the Step 1 container

    image-20211112114338703

    • Step 6: Create Activity Definition: Form will show up.
    Field name Actions
    Name Fill in "Edit book"
    Display Name Fill in "Edit book"

    image-20211112113737711

    • Step 7. Click Add button to open the Add Data source dialog.
    Field name Actions
    Data Class Select "CwBook"
    Name CwBook
    Reference Type field Select "Single Object"
    Reference To Select "Existing Object"
    Data context Input

    image-20211110114832540

    Click Save

    • Step 8. Drag and drop these fields into form canvas:
      • Title
      • Genre
      • Price
      • PurchaseDate

    After drag and drop all 4 fields as show below, click on Save & Close.

    image-20211112113649562

    • Step 9. Create a button to trigger the workflow

    Follow this guide to create and test a button to make "Edit book" button

    image-20211112113247553

    • Step 10. Reload your page to see the button on-live

    image-20211112113416040

    Good job! You are ready to move to the next step - Create delete-object workflow

    In This Article
    Back to top Generated by DocFX