3434@ RequestMapping ("/workflows" )
3535public class WorkflowController {
3636
37- private final static Log LOG = LogFactory .getLog (WorkflowController .class );
37+ private static final Log LOG = LogFactory .getLog (WorkflowController .class );
3838
3939 private WorkflowEngineService workflowEngineService ;
4040
@@ -73,7 +73,7 @@ public JsonNode searchWorkflows(
7373 @ RequestParam (defaultValue ="20" ) Integer limit ,
7474 @ TenantHeader String tenant
7575 ) {
76- LOG .debug (String .format ("Performing CQL search: {}, offset, limit " , query , offset , limit ));
76+ LOG .debug (String .format ("Performing CQL search: %s, %s, %s " , query , offset , limit ));
7777 return workflowCqlService .findByCql (query , offset , limit );
7878 }
7979
@@ -92,7 +92,7 @@ public Workflow activateWorkflow(
9292 @ TenantHeader String tenant ,
9393 @ TokenHeader String token
9494 ) throws WorkflowEngineServiceException , WorkflowNotFoundException {
95- LOG .info (String .format ("Activating: {} " , id ));
95+ LOG .info (String .format ("Activating: %s " , id ));
9696
9797 workflowEngineService .exists (id );
9898
@@ -105,7 +105,7 @@ public Workflow deactivateWorkflow(
105105 @ TenantHeader String tenant ,
106106 @ TokenHeader String token
107107 ) throws WorkflowEngineServiceException , WorkflowNotFoundException {
108- LOG .info (String .format ("Deactivating: {} " , id ));
108+ LOG .info (String .format ("Deactivating: %s " , id ));
109109
110110 workflowEngineService .exists (id );
111111
@@ -118,7 +118,7 @@ public ResponseEntity<Object> deleteWorkflow(
118118 @ TenantHeader String tenant ,
119119 @ TokenHeader String token
120120 ) throws WorkflowEngineServiceException , WorkflowNotFoundException {
121- LOG .info (String .format ("Deleting: {} " , id ));
121+ LOG .info (String .format ("Deleting: %s " , id ));
122122
123123 workflowEngineService .exists (id );
124124
@@ -134,7 +134,7 @@ public JsonNode workflowHistory(
134134 @ TenantHeader String tenant ,
135135 @ TokenHeader String token
136136 ) throws WorkflowEngineServiceException {
137- LOG .debug (String .format ("Retrieving History: {} " , id ));
137+ LOG .debug (String .format ("Retrieving History: %s " , id ));
138138 return workflowEngineService .history (id , tenant , token );
139139 }
140140
@@ -145,7 +145,7 @@ public JsonNode startWorkflow(
145145 @ TokenHeader String token ,
146146 @ RequestBody JsonNode context
147147 ) throws WorkflowEngineServiceException {
148- LOG .info (String .format ("Starting: {} with context {} " , id , context ));
148+ LOG .info (String .format ("Starting: %s with context %s " , id , context ));
149149 return workflowEngineService .start (id , tenant , token , context );
150150 }
151151
0 commit comments