Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Practice
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
school
temporal
Practice
Merge requests
!1
Hugo
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Closed
Hugo
hugo
into
main
Overview
0
Commits
2
Pipelines
0
Changes
93
Closed
Hugo
Hugo CAUPERT
requested to merge
hugo
into
main
2 months ago
Overview
0
Commits
2
Pipelines
0
Changes
93
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
950c2916
2 commits,
2 months ago
93 files
+
2610
−
141
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
93
solutions/day1/part-2/temporalpractice/bakery/kitchen/KitchenWorkflowImpl.java
+
6
−
12
View file @ 950c2916
Edit in single-file editor
Open in Web IDE
Show full file
@@ -8,19 +8,13 @@ import io.temporal.workflow.Workflow;
import
java.time.Duration
;
public
class
KitchenWorkflowImpl
implements
KitchenWorkflow
{
private
final
BatterService
batterService
;
private
final
BakeService
bakeService
;
public
KitchenWorkflowImpl
()
{
ActivityOptions
options
=
ActivityOptions
.
newBuilder
()
.
setTaskQueue
(
"TheOneAndOnlyQueue"
)
.
setStartToCloseTimeout
(
Duration
.
ofSeconds
(
10
))
.
build
();
this
.
batterService
=
Workflow
.
newActivityStub
(
BatterService
.
class
,
options
);
this
.
bakeService
=
Workflow
.
newActivityStub
(
BakeService
.
class
,
options
);
}
private
final
ActivityOptions
options
=
ActivityOptions
.
newBuilder
()
.
setTaskQueue
(
"TheOneAndOnlyQueue"
)
.
setStartToCloseTimeout
(
Duration
.
ofSeconds
(
10
))
.
build
();
private
final
BatterService
batterService
=
Workflow
.
newActivityStub
(
BatterService
.
class
,
options
);
private
final
BakeService
bakeService
=
Workflow
.
newActivityStub
(
BakeService
.
class
,
options
);
@Override
public
void
makeCookies
()
{
Loading