File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/java/uk/gov/hmcts/reform/wastandalonetaskbpmn Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,6 @@ public ProcessInstance startCreateTaskProcessWithBusinessKeyWithoutTenentId(Map<
6363 */
6464 public ProcessInstance createTask (boolean withDelayUntil ) {
6565
66- String delayUntilValue = now ().plusSeconds (1 ).format (DateTimeFormatter .ofPattern (DATE_TIME_FORMAT_PATTERN ));
67-
6866 ZonedDateTime dueDate = now ().plusDays (7 );
6967
7068 Map <String , Object > variables = new HashMap <>();
@@ -82,6 +80,8 @@ public ProcessInstance createTask(boolean withDelayUntil) {
8280 variables .put ("workingDaysAllowed" , 2 );
8381 variables .put ("isDuplicate" , false );
8482
83+ String delayUntilValue = now ().plusSeconds (1 ).format (DateTimeFormatter .ofPattern (DATE_TIME_FORMAT_PATTERN ));
84+
8585 if (withDelayUntil ) {
8686 variables .put ("delayUntil" , delayUntilValue );
8787 }
You can’t perform that action at this time.
0 commit comments