Example usage for com.amazonaws.services.simpleworkflow.model ActivityType setName

List of usage examples for com.amazonaws.services.simpleworkflow.model ActivityType setName

Introduction

In this page you can find the example usage for com.amazonaws.services.simpleworkflow.model ActivityType setName.

Prototype


public void setName(String name) 

Source Link

Document

The name of this activity.

Usage

From source file:org.apache.camel.component.aws.swf.CamelActivityImplementationFactory.java

License:Apache License

@Override
public Iterable<ActivityType> getActivityTypesToRegister() {
    ArrayList<ActivityType> activityTypes = new ArrayList<ActivityType>(1);
    ActivityType activityType = new ActivityType();
    activityType.setName(configuration.getEventName());
    activityType.setVersion(configuration.getVersion());
    activityTypes.add(activityType);/*from   ww w  . j a  v  a2 s .  c o  m*/
    return activityTypes;
}

From source file:org.apache.camel.component.aws.swf.CamelSWFActivityClient.java

License:Apache License

public Object scheduleActivity(String eventName, String version, Object input) {
    ActivityType activity = new ActivityType();
    activity.setName(eventName);
    activity.setVersion(version);/*from  w  w  w .ja va2 s  .c o  m*/

    Promise[] promises = asPromiseArray(input);
    Promise<?> promise = dynamicActivitiesClient.scheduleActivity(activity, promises,
            configuration.getActivitySchedulingOptions(), Object.class, null);
    return promise;
}