Java 类com.amazonaws.services.simpleworkflow.flow.DecisionContextProviderImpl 实例源码

项目:swf-starter    文件:ZipS3FileProcessingWorkflow.java   
/**
 * Create a new instance of this workflow.
 */
public ZipS3FileProcessingWorkflow() {
  storageClient = new StorageActivitiesClientImpl();
  fileClient = new FileActivitiesClientImpl();
  runId = (new DecisionContextProviderImpl())
      .getDecisionContext()
      .getWorkflowContext()
      .getWorkflowExecution()
      .getRunId();
}
项目:aws-flow-maven-eclipse-samples    文件:PeriodicWorkflowImpl.java   
public PeriodicWorkflowImpl() {
    DecisionContextProvider contextProvider = new DecisionContextProviderImpl();
    clock = contextProvider.getDecisionContext().getWorkflowClock();
    activities = new DynamicActivitiesClientImpl();
    errorReporting = new ErrorReportingActivitiesClientImpl();
    selfClient = new PeriodicWorkflowSelfClientImpl();
}
项目:datamung    文件:NoOpWorkflowImpl.java   
@Asynchronous
private void run( int count, Promise<?>... waitFor )
{
    if ( count == 3 )
    {
        return;
    }
    Promise<String> name =
        control.createDatabaseName( new DecisionContextProviderImpl().getDecisionContext().getWorkflowContext().getWorkflowExecution().getWorkflowId() );
    scheduleNext( count, name );
}
项目:datamung    文件:NoOpWorkflowImpl.java   
@Asynchronous
private void scheduleNext( int count, Promise<String> name )
{
    Promise<Void> aSecond =
        new DecisionContextProviderImpl().getDecisionContext().getWorkflowClock().createTimer( 1 );
    run( count + 1, aSecond );
}
项目:aws-flow-maven-eclipse-samples    文件:WaitForSignalWorkflowImpl.java   
public WaitForSignalWorkflowImpl() {
    DecisionContextProvider provider = new DecisionContextProviderImpl();
    DecisionContext context = provider.getDecisionContext();
    clock = context.getWorkflowClock();
}
项目:aws-flow-maven-eclipse-samples    文件:CronWithRetryWorkflowImpl.java   
public CronWithRetryWorkflowImpl() {
    this(new DecisionContextProviderImpl().getDecisionContext().getWorkflowClock(), new DynamicActivitiesClientImpl(),
            new CronWithRetryWorkflowSelfClientImpl());
}
项目:aws-flow-maven-eclipse-samples    文件:FileProcessingWorkflowZipImpl.java   
public FileProcessingWorkflowZipImpl() {
    // Create activity clients
    this.store = new SimpleStoreActivitiesClientImpl();
    processor = new FileProcessingActivitiesClientImpl();
    workflowContext = (new DecisionContextProviderImpl()).getDecisionContext().getWorkflowContext();
}
项目:aws-flow-maven-eclipse-samples    文件:CronWorkflowImpl.java   
public CronWorkflowImpl() {
    this(new DecisionContextProviderImpl().getDecisionContext().getWorkflowClock(), new DynamicActivitiesClientImpl(),
            new CronWorkflowSelfClientImpl());
}