@@ -40,28 +40,24 @@ public class RunShellExecutor implements CallableTask {
4040 public RunShellExecutor (
4141 WorkflowValueResolver <String > shellCommand ,
4242 List <WorkflowValueResolver <String >> shellArguments ,
43- Optional <WorkflowValueResolver <String >> shellDirectory ,
4443 Optional <WorkflowValueResolver <Map <String , Object >>> shellEnv ,
45- Optional <ProcessReturnType > returnType ) {
44+ Optional <ProcessReturnType > returnType ,
45+ Optional <WorkflowValueResolver <String >> shellDirectory ) {
4646 this .shellCommand = shellCommand ;
4747 this .shellArguments = shellArguments ;
48- this .shellDirectory = shellDirectory ;
4948 this .shellEnv = shellEnv ;
5049 this .returnType = returnType ;
50+ this .shellDirectory = shellDirectory ;
5151 }
5252
5353 public RunShellExecutor (
54- WorkflowValueResolver <String > shellCommand ,
55- List <WorkflowValueResolver <String >> shellArguments ,
56- Optional <WorkflowValueResolver <Map <String , Object >>> shellEnv ,
57- Optional <ProcessReturnType > returnType ) {
58- this .shellCommand = shellCommand ;
59- this .shellArguments = shellArguments ;
60- this .shellDirectory = Optional .empty ();
61- this .shellEnv = shellEnv ;
62- this .returnType = returnType ;
63- }
64-
54+ WorkflowValueResolver <String > shellCommand ,
55+ List <WorkflowValueResolver <String >> shellArguments ,
56+ Optional <WorkflowValueResolver <Map <String , Object >>> shellEnv ,
57+ Optional <ProcessReturnType > returnType ) {
58+ this (shellCommand , shellArguments , shellEnv , returnType , Optional .empty ());
59+ }
60+
6561 @ Override
6662 public CompletableFuture <WorkflowModel > apply (
6763 WorkflowContext workflowContext , TaskContext taskContext , WorkflowModel model ) {
0 commit comments