$workflow_data Workflow payload. * @return array */ public function save( array $workflow_data ): array; /** * Delete a workflow. * * @param int $workflow_id Workflow ID. * @return array */ public function delete( int $workflow_id ): array; /** * Update active status. * * @param int $workflow_id Workflow ID. * @param bool $is_active Active flag. * @return array */ public function update_active_status( int $workflow_id, bool $is_active ): array; /** * Find a workflow by ID. * * @param int $workflow_id Workflow ID. * @return Workflow|null */ public function find( int $workflow_id ): ?Workflow; }