Interface WorkflowService.Iface

  • All Known Subinterfaces:
    IWorkflowService
    All Known Implementing Classes:
    TestWorkflowEnvironmentInternal.WorkflowServiceWrapper, TestWorkflowService, Thrift2ProtoAdapter, WorkflowService.Client, WorkflowServiceTChannel
    Enclosing class:
    WorkflowService

    public static interface WorkflowService.Iface
    WorkflowService API is exposed to provide support for long running applications. Application is expected to call StartWorkflowExecution to create an instance for each instance of long running workflow. Such applications are expected to have a worker which regularly polls for DecisionTask and ActivityTask from the WorkflowService. For each DecisionTask, application is expected to process the history of events for that session and respond back with next decisions. For each ActivityTask, application is expected to execute the actual logic for that task and respond back with completion or failure. Worker is expected to regularly heartbeat while activity task is running.