@@ -19,7 +19,7 @@ public TaskActivityExecutor(
19
19
this .logger = logger ;
20
20
}
21
21
22
- public String execute (String taskName , String input , String taskExecutionKey ) throws Throwable {
22
+ public String execute (String taskName , String input , int taskId ) throws Throwable {
23
23
TaskActivityFactory factory = this .activityFactories .get (taskName );
24
24
if (factory == null ) {
25
25
throw new IllegalStateException (
@@ -32,7 +32,7 @@ public String execute(String taskName, String input, String taskExecutionKey) th
32
32
String .format ("The task factory '%s' returned a null TaskActivity object." , taskName ));
33
33
}
34
34
35
- TaskActivityContextImpl context = new TaskActivityContextImpl (taskName , input , taskExecutionKey );
35
+ TaskActivityContextImpl context = new TaskActivityContextImpl (taskName , input );
36
36
37
37
// Unhandled exceptions are allowed to escape
38
38
Object output = activity .run (context );
@@ -44,29 +44,21 @@ public String execute(String taskName, String input, String taskExecutionKey) th
44
44
}
45
45
46
46
private class TaskActivityContextImpl implements TaskActivityContext {
47
- private final String taskExecutionKey ;
48
47
private final String name ;
49
48
private final String rawInput ;
50
-
51
49
52
50
private final DataConverter dataConverter = TaskActivityExecutor .this .dataConverter ;
53
51
54
- public TaskActivityContextImpl (String activityName , String rawInput , String taskExecutionKey ) {
52
+ public TaskActivityContextImpl (String activityName , String rawInput ) {
55
53
this .name = activityName ;
56
54
this .rawInput = rawInput ;
57
- this .taskExecutionKey = taskExecutionKey ;
58
55
}
59
56
60
57
@ Override
61
58
public String getName () {
62
59
return this .name ;
63
60
}
64
61
65
- @ Override
66
- public String getTaskExecutionKey () {
67
- return this .taskExecutionKey ;
68
- }
69
-
70
62
@ Override
71
63
public <T > T getInput (Class <T > targetType ) {
72
64
if (this .rawInput == null ) {
0 commit comments