Process Instances History
@include('app.processes.components.filter')
@foreach ($process_history_for_instances as $history)
{{-- @dump($history) --}}
{{-- @if (!is_null($process_instances_activity_history->id ?? null)) --}}
@if (!is_null($history->id ?? null))
{{-- @dump($history) --}}
@php
$process_instances_activity_history = CamundaEntities::initHistory()->forActivityInstance()->byInstance($history->id)->fetchHistory();
@endphp
Business Key: {{ $history->businessKey ?? null }}
Id:
{{ $history->id }}
{{-- Name: {{ $history->name }}
--}}
{{-- deleteReason: {{ $history->deleteReason ?? 'none' }}
--}}
time duration: {{ $history->durationInMillis != null ? date('H:i:s', $history->durationInMillis) : '' }}
state: {{ Str::lower($history->state ?? 'none') }}
{{-- Activity Instances --}}
@if (!is_null($history->id ?? null))
@foreach ($process_instances_activity_history->sortBy(['startTime', 'asc'], ['endTime', 'asc']) as $_history)
{{-- @dump($_history) --}}
Type: {{ $_history->activityType ?? null }}
{{-- Process Instance: {{ $_history->processInstanceId ?? null }}
--}}
Id: {{ $_history->id ?? null }}
Name: {{ $_history->activityName ?? 'none' }}
Type: {{ $_history->activityType ?? null }}
Description: {{ $_history->description ?? 'empty' }}
TaskId: {{ $_history->taskId ?? 'empty' }}
Assignee: {{ $_history->assignee ?? 'none' }}
deleteReason: {{ $_history->deleteReason ?? 'null' }}
started: {{ $_history->startTime ?? 'none' }}
ended: {{ $_history->endTime ?? 'null' }}
{{-- completed: {{ $_history->completeScope ? 'true' : 'false' }}
canceled: {{ ($_history->canceled ? 'true' : 'false') ?? '' }}
--}}
state: {{ $_history->endTime != null ? 'ended' : 'active' }}
@php
$carbonated_time = Carbon::parse($_history->startTime)
@endphp
{{ $carbonated_time->toFormattedDateString() }}
@endforeach
@endif
@endif
@endforeach
@php
// $paginator = array();
// $paginator['match'] = 'pageNumber';
// $paginator['parameter_name'] = 'pageNumber';
// $paginator['total_pages'] = $history_resource->total_pages;
// $paginator['total_pages'] = $history_resource->fetchHistoryCount();
// dump($paginator);
@endphp
@include('app.components.paginator')
@if (count($process_history_for_instances ?? []) < 1)
No previous instances yet
@endif
{{-- @foreach ($process->forActivityInstance()->byDefinition()->fetchHistory()->sortBy(['startTime', 'asc'], ['endTime', 'asc']) as $_history)
@dump($_history)
Business Key: {{ $_history->businessKey ?? null }}
Process Instance: {{ $_history->processInstanceId ?? null }}
Id: {{ $_history->id ?? null }}
Name: {{ $_history->activityName ?? 'none' }}
Type: {{ $_history->activityType ?? null }}
Description: {{ $_history->description ?? 'empty' }}
Type: {{ $_history->activityType ?? null }}
TaskId: {{ $_history->taskId ?? 'empty' }}
Assignee: {{ $_history->assignee ?? 'none' }}
deleteReason: {{ $_history->deleteReason ?? 'none' }}
started: {{ $_history->startTime ?? 'none' }}
ended: {{ $_history->endTime ?? 'none' }}
completed: {{ $_history->completeScope ? 'true' : 'false' }}
canceled: {{ ($_history->canceled ? 'true' : 'false') ?? '' }}
state: {{ $_history->endTime != null ? 'ended' : 'active' }}
@endforeach --}}
{{-- @dump($process->image()['bpmn20Xml']) --}}