Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright 2012, 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
 * or in the "license" file accompanying this file. This file is distributed
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.

fateev, samar
See also:
annotation is allowed on interfaces to define a workflow. This interface forms the contract between the implementation of WorkflowType and clients interested in starting executions, sending signals, and getting current state of execution. Use Execute annotation on the method to mark it as the entry-point for WorkflowType. @Workflow interface cannot have more than one method marked with Execute annotation. Use Signal annotation on the methods to mark them as signals supported by WorkflowType. @Workflow interface can have zero or more methods marked with Signal annotation. Use GetState annotation on the method which framework will use to update the current workflow state for WorkflowType. @Workflow interface cannot have more than one method marked with GetState annotation. Execute, Signal and GetState annotations are mutually exclusive and cannot be used simultaneously on a method. AWS Flow Framework annotation processor will auto-generate three different clients which can be used to start new executions, sending signals and retrieving workflow states for different situations.
public @interface Workflow {

This is used to specify DataConverter type to use for serialization/de-serialization of workflow method parameters and return types. Default is NullDataConverter which means to use the default DataConverter used by framework. Default DataConverter used by framework is JsonDataConverter.
    Class<? extends DataConverterdataConverter() default NullDataConverter.class;
New to GrepCode? Check out our FAQ X