$step Step configuration. * @param array $context Workflow context. * @param WorkflowJob|null $workflowJob Workflow job. * @return bool|null True if the action was executed successfully and workflow should continue, false if the action failed and execution would need to be stopped, null if the action executed but workflow should pause. */ public function execute( array $step, array $context, ?WorkflowJob $workflowJob = null ): ?bool; /** * Validate the action. * * @param array $step Step configuration. * @return bool */ public function validate( array $step ): bool; /** * Get validation errors. * * @return array */ public function getValidationErrors(): array; /** * Get step data. * * @param array $step Step configuration. * @return array */ public function getStepData( array $step ): array; /** * Evaluate the condition. * * @param array $step Step configuration. * @param array $context Workflow context. * @param WorkflowJob|null $workflowJob Workflow job. * @return bool */ public function evaluateCondition( array $step, $context, ?WorkflowJob $workflowJob = null ): bool; }