Class: Zenaton::Interfaces::Workflow Abstract

Inherits:
Job
  • Object
show all
Defined in:
lib/zenaton/interfaces/workflow.rb

Overview

This class is abstract.

Subclass and override #handle to implement a custom Workflow

Direct Known Subclasses

Workflows::Version

Instance Method Summary collapse

Instance Method Details

#handleObject

Method called to run the workflow

Raises:



10
11
12
13
# File 'lib/zenaton/interfaces/workflow.rb', line 10

def handle
  raise NotImplemented,
        "Your workflow does not implement the `handle' method"
end

#idString, ...

(Optional) Implement this method if you want to use custom IDs for your workflows.

Returns:

  • (String, Integer, NilClass)

    the custom id. Must be <= 256 bytes.



18
19
20
# File 'lib/zenaton/interfaces/workflow.rb', line 18

def id
  nil
end