Sequential Workflow Editor Model
This package contains the model for Sequential Workflow Editor.
💡 License
Commercial license
You are creating a closed source application and you are not distributing our library in source form. You may use this project under the terms of the Commercial License. To purchase license check the pricing.
Open source license
If you are developing a freely available software program using a license that aligns with the GNU General Public License version 3, you are permitted to utilize this project while abiding by the provisions outlined in the GPLv3.
0.7.2
We added a new type of a validator: step validator. It allows to restrict a placement of a step in a definition. For example, you can enforce that a step can be placed only inside a specific step.
createStepModel<WriteSocketStep>('writeSocket', 'task', step => {
step.validator({
validate(context: StepValidatorContext) {
const parentTypes = context.getParentStepTypes();
return parentTypes.includes('socket');
? null // No errors
: 'The write socket step must be inside a socket.';
}
});
});
Additionally we've renamed:
- the
CustomValidatorContext
class to PropertyValidatorContext
, - the
customValidator
method of the PropertyModelBuilder
class to validator
.