File tree Expand file tree Collapse file tree 7 files changed +121
-5
lines changed
src/main/java/com/uber/cadence/samples/spring Expand file tree Collapse file tree 7 files changed +121
-5
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Modifications copyright (C) 2017 Uber Technologies, Inc.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not
7
+ * use this file except in compliance with the License. A copy of the License is
8
+ * located at
9
+ *
10
+ * http://aws.amazon.com/apache2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed on
13
+ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+
1
18
package com .uber .cadence .samples .spring ;
2
19
3
20
import com .uber .cadence .client .WorkflowClient ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Modifications copyright (C) 2017 Uber Technologies, Inc.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not
7
+ * use this file except in compliance with the License. A copy of the License is
8
+ * located at
9
+ *
10
+ * http://aws.amazon.com/apache2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed on
13
+ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+
1
18
package com .uber .cadence .samples .spring .cadence ;
2
19
3
20
import static com .uber .cadence .samples .common .SampleConstants .DOMAIN ;
@@ -35,11 +52,8 @@ public void startWorker(ApplicationStartedEvent event) {
35
52
WorkerFactory factory = WorkerFactory .newInstance (workflowClient );
36
53
Worker worker = factory .newWorker (TASK_LIST );
37
54
38
- // HelloWorldWorkflow registration
39
- worker .registerWorkflowImplementationTypes (HelloWorldWorkflowImpl .class );
40
-
41
- // SignalWorkflow registration
42
- worker .registerWorkflowImplementationTypes (SignalWorkflowImpl .class );
55
+ worker .registerWorkflowImplementationTypes (
56
+ HelloWorldWorkflowImpl .class , SignalWorkflowImpl .class );
43
57
factory .start ();
44
58
}
45
59
}
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Modifications copyright (C) 2017 Uber Technologies, Inc.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not
7
+ * use this file except in compliance with the License. A copy of the License is
8
+ * located at
9
+ *
10
+ * http://aws.amazon.com/apache2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed on
13
+ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+
1
18
package com .uber .cadence .samples .spring .common ;
2
19
3
20
public class Constant {
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Modifications copyright (C) 2017 Uber Technologies, Inc.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not
7
+ * use this file except in compliance with the License. A copy of the License is
8
+ * located at
9
+ *
10
+ * http://aws.amazon.com/apache2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed on
13
+ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+
1
18
package com .uber .cadence .samples .spring .workflows ;
2
19
3
20
import static com .uber .cadence .samples .spring .common .Constant .TASK_LIST ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Modifications copyright (C) 2017 Uber Technologies, Inc.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not
7
+ * use this file except in compliance with the License. A copy of the License is
8
+ * located at
9
+ *
10
+ * http://aws.amazon.com/apache2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed on
13
+ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+
1
18
package com .uber .cadence .samples .spring .workflows ;
2
19
3
20
import com .uber .cadence .samples .spring .models .SampleMessage ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Modifications copyright (C) 2017 Uber Technologies, Inc.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not
7
+ * use this file except in compliance with the License. A copy of the License is
8
+ * located at
9
+ *
10
+ * http://aws.amazon.com/apache2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed on
13
+ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+
1
18
package com .uber .cadence .samples .spring .workflows .impl ;
2
19
3
20
import com .uber .cadence .samples .spring .models .SampleMessage ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Modifications copyright (C) 2017 Uber Technologies, Inc.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not
7
+ * use this file except in compliance with the License. A copy of the License is
8
+ * located at
9
+ *
10
+ * http://aws.amazon.com/apache2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed on
13
+ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+
1
18
package com .uber .cadence .samples .spring .workflows .impl ;
2
19
3
20
import com .uber .cadence .samples .spring .models .SampleMessage ;
You can’t perform that action at this time.
0 commit comments