本文整理汇总了Java中com.amazonaws.services.simpleworkflow.flow.annotations.Execute类的典型用法代码示例。如果您正苦于以下问题:Java Execute类的具体用法?Java Execute怎么用?Java Execute使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Execute类属于com.amazonaws.services.simpleworkflow.flow.annotations包,在下文中一共展示了Execute类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: visitExecutable
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Override
public Void visitExecutable(ExecutableElement method, ProcessingEnvironment env) {
if (method.getAnnotation(Execute.class) != null) {
String workflowName = ProcessorUtils.computeWorkflowName(
workflowDefinition.getInterfaceName(), method);
String workflowVersion = ProcessorUtils.computeWorkflowVersion(method);
ExecuteMethod executeMethod = new ExecuteMethod(workflowName, workflowVersion);
setMethodInfo(method, executeMethod, workflowDefinition.getPackageName());
executeMethod.setAnnotationsToCopy(ProcessorUtils.getAnnotationsText(env, method, annotationsToExcludeFromCopying));
workflowDefinition.setExecuteMethod(executeMethod);
}
else if (method.getAnnotation(Signal.class) != null) {
String signalName = ProcessorUtils.computeSignalName(method);
SignalMethod signalMethod = new SignalMethod(signalName);
setMethodInfo(method, signalMethod, workflowDefinition.getPackageName());
workflowDefinition.getSignals().add(signalMethod);
}
else if (method.getAnnotation(GetState.class) != null) {
GetStateMethod getStateMethod = new GetStateMethod();
setMethodInfo(method, getStateMethod, workflowDefinition.getPackageName());
workflowDefinition.setGetStateMethod(getStateMethod);
}
return super.visitExecutable(method, env);
}
开发者ID:aws,项目名称:aws-swf-build-tools,代码行数:33,代码来源:WorkflowTypeVisitor.java
示例2: computeWorkflowName
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
public static String computeWorkflowName(String interfaceName, ExecutableElement workflow) {
assert(workflow != null);
String workflowName = null;
Execute options = workflow.getAnnotation(Execute.class);
if (options != null && !options.name().isEmpty()) {
workflowName = options.name();
}
else {
workflowName = interfaceName + "." + workflow.getSimpleName().toString();
}
return workflowName;
}
开发者ID:aws,项目名称:aws-swf-build-tools,代码行数:15,代码来源:ProcessorUtils.java
示例3: computeWorkflowVersion
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
public static String computeWorkflowVersion(ExecutableElement workflow) {
String version = "1.0"; // Default
Execute options = workflow.getAnnotation(Execute.class);
if (!options.version().isEmpty()) {
version = options.version();
}
return version;
}
开发者ID:aws,项目名称:aws-swf-build-tools,代码行数:11,代码来源:ProcessorUtils.java
示例4: greet
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void greet();
开发者ID:csquire,项目名称:swf-flow-gradle,代码行数:3,代码来源:GreeterWorkflow.java
示例5: loop
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void loop(int times);
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:3,代码来源:ForLoopInlineRecipeWorkflow.java
示例6: placeOrder
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void placeOrder(int amount);
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:3,代码来源:WaitForSignalWorkflow.java
示例7: runMultipleActivitiesConcurrently
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void runMultipleActivitiesConcurrently();
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:3,代码来源:RunMultipleActivitiesConcurrentlyWorkflow.java
示例8: process
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.1")
void process();
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:3,代码来源:RetryWorkflow.java
示例9: processOrder
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void processOrder();
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:3,代码来源:OrderChoiceWorkflow.java
示例10: startWorkflow
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void startWorkflow();
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:3,代码来源:ConditionalLoopWorkflow.java
示例11: startWorkflow
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
void startWorkflow();
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:3,代码来源:HumanTaskWorkflow.java
示例12: doWhile
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void doWhile();
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:3,代码来源:DoWhileWorkflow.java
示例13: search
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
Promise<List<String>> search(String query);
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:3,代码来源:PickFirstBranchWorkflow.java
示例14: startWorkflow
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void startWorkflow() throws Throwable ;
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:3,代码来源:HandleErrorWorkflow.java
示例15: parallelComputing
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public Promise<Integer> parallelComputing(int braches);
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:3,代码来源:JoinBranchesWorkflow.java
示例16: average
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(name = "SplitMergeWorkflowExample", version = "1.0")
void average(String bucketName, String fileName, final int numberOfWorkers);
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:3,代码来源:AverageCalculatorWorkflow.java
示例17: helloWorld
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
void helloWorld(String name);
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:3,代码来源:HelloWorldWorkflow.java
示例18: processFile
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(name = "ProcessFile", version = "1.0")
public void processFile(String sourceBucketName, String sourceFilename, String targetBucketName, String targetFilename)
throws IOException;
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:4,代码来源:FileProcessingWorkflow.java
示例19: makeBooking
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(name = "MakeBooking", version = "1.0")
void makeBooking(int requestID, int customerID, boolean reserveAir, boolean reserveCar);
开发者ID:pedropaulovc,项目名称:aws-flow-maven-eclipse-samples,代码行数:3,代码来源:BookingWorkflow.java
示例20: export
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute( name = ExportInstanceWorkflow.WORKFLOW_TYPE, version = ExportInstanceWorkflow.WORKFLOW_VERSION )
void export( ExportInstanceRequest request );
开发者ID:jiaqi,项目名称:datamung,代码行数:3,代码来源:ExportInstanceWorkflow.java
注:本文中的com.amazonaws.services.simpleworkflow.flow.annotations.Execute类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论