Skip to content

The empty policy is crashed during flow.fail #109

@mishindm

Description

@mishindm

When a policy has empty 'properties:' or 'required:' attributes defined, but the 'throw:' property is populated in policy.yaml, the attempt to call flow.fail ends with crash in flow-engine on:

// 1. check the policy's own handler
if (currTask[type].catch) {

as currTask is null.

Adding some property is fixing the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions