randome critical code that I missed during last resolve of conflicts.

This commit is contained in:
Dan 2023-04-26 16:38:30 -04:00
parent df6bf07186
commit 5b9fad65fa
3 changed files with 8 additions and 4 deletions

View File

@ -424,6 +424,7 @@ def _interstitial_stream(process_instance: ProcessInstanceModel) -> Generator[st
return return
processor.bpmn_process_instance.refresh_waiting_tasks() processor.bpmn_process_instance.refresh_waiting_tasks()
ready_engine_task_count = get_ready_engine_step_count(processor.bpmn_process_instance) ready_engine_task_count = get_ready_engine_step_count(processor.bpmn_process_instance)
tasks = get_reportable_tasks()
if ready_engine_task_count == 0: if ready_engine_task_count == 0:
break # No more tasks to report break # No more tasks to report

View File

@ -319,7 +319,9 @@ class RunUntilUserTaskOrMessageExecutionStrategy(ExecutionStrategy):
engine_steps = self.get_ready_engine_steps(bpmn_process_instance) engine_steps = self.get_ready_engine_steps(bpmn_process_instance)
while engine_steps and should_continue: while engine_steps and should_continue:
for task in engine_steps: for task in engine_steps:
if hasattr(task.task_spec, "extensions") and task.task_spec.extensions.get("instructionsForEndUser", None): if hasattr(task.task_spec, "extensions") and task.task_spec.extensions.get(
"instructionsForEndUser", None
):
should_continue = False should_continue = False
break break
self.delegate.will_complete_task(task) self.delegate.will_complete_task(task)
@ -330,7 +332,6 @@ class RunUntilUserTaskOrMessageExecutionStrategy(ExecutionStrategy):
self.delegate.after_engine_steps(bpmn_process_instance) self.delegate.after_engine_steps(bpmn_process_instance)
class OneAtATimeExecutionStrategy(ExecutionStrategy): class OneAtATimeExecutionStrategy(ExecutionStrategy):
"""When you want to run only one engine step at a time.""" """When you want to run only one engine step at a time."""

View File

@ -1449,10 +1449,12 @@ export default function ProcessInstanceListTable({
buttonElement = ( buttonElement = (
<Button <Button
kind={hasAccessToCompleteTask && row.task_id ? 'secondary' : 'ghost'} kind={
hasAccessToCompleteTask && row.task_id ? 'secondary' : 'ghost'
}
href={interstitialUrl} href={interstitialUrl}
> >
{ hasAccessToCompleteTask && row.task_id ? 'Go' : 'View' } {hasAccessToCompleteTask && row.task_id ? 'Go' : 'View'}
</Button> </Button>
); );
currentRow.push(<td>{buttonElement}</td>); currentRow.push(<td>{buttonElement}</td>);