Define custom work item MyWorkItem

It is necessary to create a custom work item if using a custom work queue.

Before you begin

Before creating this custom work item, review Example work queue with a custom work item type. If necessary, also review Custom work queues.

Procedure

  1. Open Guidewire Studio.
  2. In the Studio Project window, expand configuration > config > Extensions > Entity.
  3. Right-click Entity and select New > Entity.
  4. Enter the following information in the Entity dialog and click OK.

    Entity

    MyWorkItem

    Entity Type

    Entity

    Description

    Custom work item

    Type

    keyable

    Note: See Considerations for developing a custom work queue for a discussion as to why Guidewire recommends the use of softentityreference instead of foreignkey here.

    For all other fields, accept that dialog defaults.

  5. Using the add functionality at the top of the left-hand column (the plus sign), add the following subelements to the MyWorkItem entity.

    Element

    Element attribute

    column

    • nameActivity
    • typesoftentityreference
    • nullokfalse

    implementsEntity

    • nameWorkitem

What to do next

To use this custom work item, implement custom work queue MyActivitySetEscalationWorkQueue as defined in Implement custom work queue MyActivitySetEscalationWorkQueue.