@vhidvz/wfjs
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    $: { id: string; name?: string }
    context?: Context<any>
    key?: string
    process: BPMNProcess
    token?: Token

    Accessors

    • get attachments(): EventActivity[]

      The function retrieves the attachments of a boundary event in a BPMN process.

      Returns EventActivity[]

      an array of attachments. These attachments are boundary events that are attached to the current BPMN element. The function filters out any boundary events that are not attached to the current element and then maps them to their corresponding activities. The resulting array contains the activities that are attached as boundaries to the current element.

    • get id(): string

      The function returns the value of the id property of the object that is stored in the $ property of the current object

      Returns string

      The id property of the object.

    • get incoming(): Sequence[]

      The incoming property returns an array of Sequence objects that are incoming to the current Activity

      Returns Sequence[]

      An array of Sequence objects.

    • get name(): string | undefined

      The function returns the value of the name property of the object that is stored in the $ property of the current object

      Returns string | undefined

      The name property of the object.

    • get outgoing(): Sequence[]

      It returns an array of Sequence objects that are outgoing from the current activity

      Returns Sequence[]

      An array of Sequence objects

    • get taskType(): | Send
      | User
      | Manual
      | Script
      | Receive
      | Service
      | Business
      | undefined

      If the key property of the current object contains the word "send", return the value of the Send enum, otherwise if the key property of the current object contains the word "user", return the value of the User enum, otherwise if the key property of the current object contains the word "manual", return the value of the Manual enum, otherwise if the key property of the current object contains the word "script", return the value of the Script enum, otherwise if the key property of the current object contains the word "receive", return the value of the Receive enum, otherwise if the key property of the current object contains the word "service", return the value of the Service enum, otherwise if the key property of the current object contains the word "business", return the value of the Business enum, otherwise return undefined

      Returns Send | User | Manual | Script | Receive | Service | Business | undefined

      The task type.

    Methods

    • The function handles outgoing transitions for a token in a workflow system.

      Parameters

      • outgoing: GoOutInterface[]

        outgoing is an array of objects of type GoOutInterface. Each object represents an outgoing transition from a current activity to a new activity.

      Returns Token[] | undefined

    • If the key property of the current node is not null and includes the string 'endEvent', return true

      Returns boolean | undefined

      The key of the current node.

    • If the key property exists and includes the string 'startEvent', return true. Otherwise, return false

      Returns boolean | undefined

      A boolean value.

    • It takes the outgoing sequence flows from the current activity and creates a new token for each one

      Parameters

      • Optionalidentity: IdentityOptions

        IdentityOptions

      • Optionaloptions: { pause: string | boolean }

        pause: boolean | string

      Returns Token[] | undefined

      The outgoing activity

    • The function takes an array of options, retrieves corresponding activities from an outgoing array, and passes them to another function.

      Parameters

      • options: TakeOutgoingInterface[]

        An array of objects with two properties: "identity" and "pause". "identity" is a string representing the identity of the outgoing activity to be taken out, and "pause" is a boolean indicating whether the activity should be paused or not.

      Returns Token[] | undefined

      If the outgoing property is falsy or an empty array, nothing is returned.