本文整理汇总了Java中com.amazonaws.services.simpleworkflow.flow.annotations.Execute类的典型用法代码示例。如果您正苦于以下问题:Java Execute类的具体用法?Java Execute怎么用?Java Execute使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Execute类属于com.amazonaws.services.simpleworkflow.flow.annotations包,在下文中一共展示了Execute类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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;
}
示例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;
}
示例4: greet
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void greet();
示例5: loop
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void loop(int times);
示例6: placeOrder
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void placeOrder(int amount);
示例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();
示例9: processOrder
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void processOrder();
示例10: startWorkflow
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void startWorkflow();
示例11: startWorkflow
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
void startWorkflow();
示例12: doWhile
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void doWhile();
示例13: search
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
Promise<List<String>> search(String query);
示例14: startWorkflow
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public void startWorkflow() throws Throwable ;
示例15: parallelComputing
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute; //导入依赖的package包/类
@Execute(version = "1.0")
public Promise<Integer> parallelComputing(int braches);