Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License").
  * You may not use this file except in compliance with the License.
  * A copy of the License is located at
  *
  *  http://aws.amazon.com/apache2.0
  *
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
package com.amazonaws.services.simpleworkflow.flow.generic;
Base class for activity implementation. Extending ActivityImplementationBase instead of ActivityImplementation is recommended.

public abstract class ActivityImplementation {

    
Options passed to the com.amazonaws.services.simpleworkflow.AmazonSimpleWorkflow.registerActivityType(com.amazonaws.services.simpleworkflow.model.RegisterActivityTypeRequest) call.

Returns:
null if activity registration is not required on the worker startup
    public abstract ActivityTypeExecutionOptions getExecutionOptions();

    
Execute external activity or initiate its execution if isManualActivityCompletion() is true.

Parameters:
task information about activity to be executed. Use com.amazonaws.services.simpleworkflow.model.ActivityTask.getInput() to get activity input arguments.
Returns:
result of activity execution if isManualActivityCompletion() is set to false. Use com.amazonaws.services.simpleworkflow.flow.ActivityWorker.respondActivityTaskCompleted(java.lang.String,java.util.Map) to return result in asynchronous case.
New to GrepCode? Check out our FAQ X