Skip to content
anthonime edited this page Jan 17, 2017 · 12 revisions

Welcome to the swiffer wiki!

Getting Started

Maven: TODO

Create tasks:

Create a decider:

Start your workflow

Features

User guide

You have to define several things:

  • Activity definitions: used to reference the task in deciders and workers, and to automatically register the activity type in AWS SWF
  • Activity executor: the job that is going to be done by a scheduled activity
  • Worker: a poller that is going to poll for activity tasks, and invoke activity worker
  • Decider defintions: the logic and workflow that schedule tasks, start timers, etc.

Activity definitions

You can define activities on java methods but it is not recommended because you will not be able to reuse the definition in the decider side:

@ActivityType(name = PARSE_INTEGER_TASK_NAME, version = PARSE_INTEGER_TASK_VERSION)
public Integer parseInteger(String input){
//...
}

It is preferred to define activites as dedicated interfaces, so that you can share that definition in deciders:

@ActivityType(name = PARSE_INTEGER_TASK_NAME, version = PARSE_INTEGER_TASK_VERSION)
public static interface ParseInteger{
//...
}

Or even by defining annotations:

@ActivityType(name = Constants.PARSE_INTEGER_TASK_NAME, version = Constants.PARSE_INTEGER_TASK_VERSION)
public static @interface ParseInteger {
///
}
'''

### timeouts
TODO
### input/outputs
TODO
### tasklist 
TODO

## Activity Executor

The executor is the code that is executed when an Activitytask is polled from the task list


## Decider
## External
## Configuration
## HighLevel features

## Create Activity tasks

Table of Contents

    Clone this wiki locally