From 05481189ccdec784fe24a3d3a812cf9212605533 Mon Sep 17 00:00:00 2001 From: Vahid V Date: Mon, 27 Feb 2023 16:04:21 +0330 Subject: [PATCH] update --- coverage-badge.svg | 2 +- docs/classes/Activity.html | 34 +- docs/classes/Attribute.html | 12 +- docs/classes/Container.html | 10 +- docs/classes/Context.html | 36 +- docs/classes/EventActivity.html | 38 +- docs/classes/GatewayActivity.html | 34 +- docs/classes/Lane.html | 18 +- docs/classes/Sequence.html | 18 +- docs/classes/State.html | 18 +- docs/classes/TaskActivity.html | 32 +- docs/classes/Token.html | 36 +- docs/classes/WorkflowJS.html | 14 +- docs/coverage/coverage-summary.json | 22 +- docs/coverage/lcov-report/index.html | 126 +- .../src/common/decorators/index.html | 82 +- .../src/common/decorators/index.ts.html | 2 +- .../src/common/decorators/method.ts.html | 160 +- .../src/common/decorators/params.ts.html | 128 +- .../src/common/decorators/process.ts.html | 92 +- .../lcov-report/src/common/index.html | 2 +- .../lcov-report/src/common/index.ts.html | 2 +- .../lcov-report/src/common/keys.ts.html | 2 +- .../lcov-report/src/common/types.ts.html | 2 +- .../lcov-report/src/context/context.ts.html | 112 +- .../lcov-report/src/context/enums/index.html | 2 +- .../src/context/enums/index.ts.html | 2 +- .../src/context/enums/status.ts.html | 18 +- .../lcov-report/src/context/index.html | 84 +- .../lcov-report/src/context/index.ts.html | 2 +- .../lcov-report/src/context/state.ts.html | 38 +- .../lcov-report/src/context/token.ts.html | 94 +- .../src/core/activities/event.ts.html | 50 +- .../src/core/activities/gateway.ts.html | 320 ++-- .../src/core/activities/index.html | 42 +- .../src/core/activities/index.ts.html | 2 +- .../src/core/activities/task.ts.html | 28 +- .../src/core/base/activity.ts.html | 128 +- .../src/core/base/attribute.ts.html | 16 +- .../lcov-report/src/core/base/index.html | 32 +- .../lcov-report/src/core/base/index.ts.html | 2 +- .../lcov-report/src/core/base/lane.ts.html | 2 +- .../src/core/base/sequence.ts.html | 18 +- .../lcov-report/src/core/container.ts.html | 2 +- docs/coverage/lcov-report/src/core/index.html | 2 +- .../lcov-report/src/core/index.ts.html | 2 +- .../lcov-report/src/engine/index.html | 40 +- .../lcov-report/src/engine/index.ts.html | 2 +- .../src/engine/types/execute.ts.html | 2 +- .../lcov-report/src/engine/types/index.html | 2 +- .../src/engine/types/index.ts.html | 2 +- .../lcov-report/src/engine/workflow.ts.html | 754 ++++---- docs/coverage/lcov-report/src/index.html | 10 +- docs/coverage/lcov-report/src/index.ts.html | 2 +- docs/coverage/lcov-report/src/tools.ts.html | 38 +- .../lcov-report/src/type/base.ts.html | 2 +- .../src/type/collaboration.ts.html | 2 +- .../lcov-report/src/type/definition.ts.html | 2 +- docs/coverage/lcov-report/src/type/index.html | 2 +- .../lcov-report/src/type/index.ts.html | 2 +- .../lcov-report/src/type/process.ts.html | 2 +- docs/coverage/lcov-report/src/utils.ts.html | 80 +- docs/coverage/lcov.info | 1655 ++++++++++------- docs/enums/EventDefinitionType.html | 18 +- docs/enums/EventType.html | 10 +- docs/enums/GatewayType.html | 12 +- docs/enums/IntermediateType.html | 6 +- docs/enums/Status.html | 14 +- docs/enums/TaskType.html | 16 +- docs/functions/Act.html | 2 +- docs/functions/Ctx.html | 2 +- docs/functions/Data.html | 2 +- docs/functions/Node.html | 2 +- docs/functions/Param.html | 2 +- docs/functions/Process.html | 2 +- docs/functions/Sign.html | 2 +- docs/functions/Value.html | 2 +- docs/functions/getActivity.html | 2 +- docs/functions/getBPMNActivity.html | 2 +- docs/functions/getBPMNProcess.html | 2 +- docs/functions/logger.html | 2 +- docs/functions/parse.html | 2 +- docs/functions/readFile.html | 2 +- docs/functions/takeOutgoing.html | 2 +- docs/functions/uid.html | 2 +- docs/interfaces/ContextInterface.html | 8 +- docs/interfaces/ExecutionInterface.html | 24 +- docs/interfaces/StateInterface.html | 10 +- docs/interfaces/TokenInterface.html | 10 +- docs/types/BPMNActivity.html | 2 +- docs/types/BPMNActivityType.html | 2 +- docs/types/BPMNBoundaryEvent.html | 2 +- docs/types/BPMNCollaboration.html | 2 +- docs/types/BPMNDefinition.html | 2 +- docs/types/BPMNElement.html | 2 +- docs/types/BPMNEndEvent.html | 2 +- docs/types/BPMNEvent.html | 2 +- docs/types/BPMNEventDefinition.html | 2 +- docs/types/BPMNEventDefinitionType.html | 2 +- docs/types/BPMNEventType.html | 2 +- docs/types/BPMNGateway.html | 2 +- docs/types/BPMNGatewayType.html | 2 +- docs/types/BPMNIntermediateEvent.html | 2 +- docs/types/BPMNLane.html | 2 +- docs/types/BPMNLaneSet.html | 2 +- docs/types/BPMNMessageFlow.html | 2 +- docs/types/BPMNNormalGateway.html | 2 +- docs/types/BPMNParticipant.html | 2 +- docs/types/BPMNProcess.html | 2 +- docs/types/BPMNSchema.html | 2 +- docs/types/BPMNSequenceFlow.html | 2 +- docs/types/BPMNStartEvent.html | 2 +- docs/types/BPMNStrictGateway.html | 2 +- docs/types/BPMNTask.html | 2 +- docs/types/BPMNTaskType.html | 2 +- docs/types/Execute.html | 2 +- docs/types/IdentityOptions.html | 2 +- docs/types/Metadata.html | 2 +- docs/types/MethodOptions.html | 2 +- docs/types/ParamType.html | 2 +- docs/types/ProcessOptions.html | 2 +- docs/types/_.html | 2 +- docs/variables/Default.html | 2 +- docs/variables/NodeKey.html | 2 +- docs/variables/ParamKey.html | 2 +- package-lock.json | 4 +- package.json | 2 +- test/engine/workflow.test.ts | 45 +- 128 files changed, 2529 insertions(+), 2273 deletions(-) diff --git a/coverage-badge.svg b/coverage-badge.svg index ea894bcd..86b3dbe4 100644 --- a/coverage-badge.svg +++ b/coverage-badge.svg @@ -1 +1 @@ -Coverage: 69.53%Coverage69.53% \ No newline at end of file +Coverage: 90.4%Coverage90.4% \ No newline at end of file diff --git a/docs/classes/Activity.html b/docs/classes/Activity.html index 73ca646d..381fcd22 100644 --- a/docs/classes/Activity.html +++ b/docs/classes/Activity.html @@ -26,7 +26,7 @@

Hierarchy

  • EventActivity
  • TaskActivity
  • +
  • Defined in core/base/activity.ts:12
  • @@ -79,7 +79,7 @@
    Optional key: Returns Activity
    +
  • Defined in core/base/activity.ts:21
  • Properties

    @@ -94,38 +94,38 @@
    id: Optional name?: string
    +
  • Defined in core/base/attribute.ts:7
  • bpmn:incoming: string[]
    +
  • Defined in core/base/activity.ts:18
  • bpmn:outgoing: string[]
    +
  • Defined in core/base/activity.ts:19
  • context?: Context<any>
    +
  • Defined in core/base/activity.ts:16
  • key?: string
    +
  • Defined in core/base/activity.ts:13
  • process: BPMNProcess
    +
  • Defined in core/base/attribute.ts:5
  • token?: Token
    +
  • Defined in core/base/activity.ts:15
  • Accessors

    @@ -141,7 +141,7 @@

    Returns

    The id property of the object.

    Returns string

    +
  • Defined in core/base/attribute.ts:20
  • +
  • Defined in core/base/activity.ts:32
  • +
  • Defined in core/base/attribute.ts:30
  • +
  • Defined in core/base/activity.ts:44
  • Methods

    @@ -199,7 +199,7 @@

    Returns

    The key of the current node.

    Returns undefined | boolean

    +
  • Defined in core/base/activity.ts:107
  • +
  • Defined in core/base/activity.ts:117
  • Returns undefined | Activity[]

    +
  • Defined in core/base/activity.ts:61
  • +
  • Defined in core/base/activity.ts:130
  • +
  • Defined in core/base/attribute.ts:7
  • process: BPMNProcess
    +
  • Defined in core/base/attribute.ts:5
  • Accessors

    @@ -94,7 +94,7 @@

    Returns

    The id property of the object.

    Returns string

    +
  • Defined in core/base/attribute.ts:20
  • +
  • Defined in core/base/attribute.ts:30
  • Returns void

    +
  • Defined in core/container.ts:38
  • Returns BPMNDefinition

    +
  • Defined in core/container.ts:29
  • +
  • Defined in context/context.ts:14
  • status?: Status
    +
  • Defined in context/context.ts:16
  • tokens: Token[] = []
    +
  • Defined in context/context.ts:15
  • Methods

    @@ -119,7 +119,7 @@
    token:

    Returns void

    +
  • Defined in context/context.ts:51
  • Returns void

    +
  • Defined in context/context.ts:72
  • Returns undefined | Token[]

    +
  • Defined in context/context.ts:62
  • +
  • Defined in context/context.ts:91
  • +
  • Defined in context/context.ts:82
  • +
  • Defined in context/context.ts:42
  • +
  • Defined in context/context.ts:100
  • +
  • Defined in context/context.ts:109
  • +
  • Defined in context/context.ts:25
  • +
  • Defined in context/context.ts:32
  • +
  • Defined in context/context.ts:120
  • +
  • Defined in context/context.ts:150
  • +
  • Defined in context/context.ts:135
  • Returns undefined | Activity

    +
  • Defined in core/activities/event.ts:51
  • +
  • Defined in core/activities/event.ts:95
  • +
  • Defined in core/base/attribute.ts:20
  • +
  • Defined in core/base/activity.ts:32
  • +
  • Defined in core/activities/event.ts:78
  • +
  • Defined in core/base/attribute.ts:30
  • +
  • Defined in core/base/activity.ts:44
  • +
  • Defined in core/activities/event.ts:65
  • Methods

    @@ -254,7 +254,7 @@

    Returns

    The key of the current node.

    Returns undefined | boolean

    +
  • Defined in core/base/activity.ts:107
  • +
  • Defined in core/base/activity.ts:117
  • +
  • Defined in core/base/activity.ts:61
  • +
  • Defined in core/activities/event.ts:115
  • Returns undefined | Sequence

    +
  • Defined in core/activities/gateway.ts:112
  • +
  • Defined in core/base/attribute.ts:20
  • +
  • Defined in core/base/activity.ts:32
  • +
  • Defined in core/base/attribute.ts:30
  • +
  • Defined in core/base/activity.ts:44
  • +
  • Defined in core/activities/gateway.ts:127
  • Methods

    @@ -222,7 +222,7 @@

    Returns

    The key of the current node.

    Returns undefined | boolean

    +
  • Defined in core/base/activity.ts:107
  • +
  • Defined in core/base/activity.ts:117
  • +
  • Defined in core/activities/gateway.ts:34
  • +
  • Defined in core/activities/gateway.ts:146
  • Returns Activity[]

    +
  • Defined in core/base/lane.ts:20
  • +
  • Defined in core/base/attribute.ts:20
  • +
  • Defined in core/base/attribute.ts:30
  • Methods

    @@ -158,7 +158,7 @@
    process:

    Returns Lane

    +
  • Defined in core/base/lane.ts:37
  • Returns undefined | Activity

    +
  • Defined in core/base/sequence.ts:20
  • +
  • Defined in core/base/sequence.ts:31
  • Methods

    @@ -169,7 +169,7 @@
    process:

    Returns Sequence

    +
  • Defined in core/base/sequence.ts:45
  • Returns State<V>

    +
  • Defined in context/state.ts:59
  • Returns State<V>

    +
  • Defined in context/state.ts:46
  • Returns undefined | Send | User | Manual | Script | Receive | Service | Business

    +
  • Defined in core/activities/task.ts:41
  • Methods

    @@ -210,7 +210,7 @@

    Returns

    The key of the current node.

    Returns undefined | boolean

    +
  • Defined in core/base/activity.ts:107
  • +
  • Defined in core/base/activity.ts:117
  • +
  • Defined in core/base/activity.ts:61
  • +
  • Defined in core/activities/task.ts:61
  • +
  • Defined in context/token.ts:20
  • id: string = ...
    +
  • Defined in context/token.ts:15
  • locked?: boolean
    +
  • Defined in context/token.ts:18
  • parent?: string
    +
  • Defined in context/token.ts:17
  • Accessors

    @@ -112,7 +112,7 @@

    Returns

    The last element in the array.

    Returns State<any>

    +
  • Defined in context/token.ts:116
  • set status(status: Status): void
  • The function takes in a status and sets the status of the state to the status that was passed in

    @@ -139,7 +139,7 @@
    status:
  • Returns void

    +
  • Defined in context/token.ts:96
  • Methods

    @@ -153,7 +153,7 @@

    Returns

    A boolean value.

    Returns boolean

    +
  • Defined in context/token.ts:71
  • +
  • Defined in context/token.ts:62
  • +
  • Defined in context/token.ts:45
  • +
  • Defined in context/token.ts:38
  • +
  • Defined in context/token.ts:31
  • +
  • Defined in context/token.ts:52
  • +
  • Defined in context/token.ts:82
  • +
  • Defined in context/token.ts:143
  • Returns Token

    +
  • Defined in context/token.ts:129