mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-23 06:38:24 +00:00
randome critical code that I missed during last resolve of conflicts.
This commit is contained in:
parent
df6bf07186
commit
5b9fad65fa
@ -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
|
||||||
|
|
||||||
|
@ -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."""
|
||||||
|
|
||||||
|
@ -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>);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user