Skip to content

test complex input#1

Draft
tuanng-cognite wants to merge 5 commits intomasterfrom
test
Draft

test complex input#1
tuanng-cognite wants to merge 5 commits intomasterfrom
test

Conversation

@tuanng-cognite
Copy link
Copy Markdown
Owner

No description provided.

}
System.exit(0);
}
}
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this class publishes jobs to Temporal server.

// Start listening to the workflow and activity task queues.
factory.start();
}
}
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the worker which handles the task

// gRPC stubs wrapper that talks to the local docker instance of temporal service.
WorkflowServiceStubs service =
WorkflowServiceStubs.newInstance(
WorkflowServiceStubsOptions.newBuilder().setTarget("192.168.0.3:7233").build());
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to register the worker with Temporal service.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by default, it connects to the local Temporal service


public class ComplexWorkflowImpl implements ComplexWorkflow {
@Override
public void handleLambda(Input input) {
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

real logic is here. Arbitrary workload should be done in Activity. WorkflowMethod only contains deterministic code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant