Skip to content

Commit f159748

Browse files
committed
Update workflow config composer
1 parent a35e670 commit f159748

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

database/migrations/wf1_create_workflows_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function up()
1111
Schema::create('workflows', function (Blueprint $table) {
1212
$table->id();
1313
$table->string('name');
14-
$table->string('marking_store_attribute')->nullable()->comment('name of marking store attribute');
14+
$table->text('marking_store')->nullable()->comment('marking store as array');
1515
$table->string('type')->default('workflow')->comment('workflow or state_machine');
1616
$table->text('description')->nullable();
1717
$table->json('supports')->nullable()->comment('support models');

src/Models/Workflow.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Workflow extends Model
1717
protected $casts = [
1818
'supports' => 'array',
1919
'metadata' => 'array',
20+
'marking_store' => 'array',
2021
'type' => WorkflowTypeEnum::class,
2122
];
2223

src/Repositories/WorkflowRepository.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ protected function makeWorkflowCofig($workflow): array
6363

6464
return [
6565
$workflow->name => [
66+
'marking_store' => $workflow->marking_store,
67+
'type' => $workflow->type ?? 'workflow',
68+
'metadata' => $workflow->metadata,
6669
'supports' => $workflow->supports,
6770
'places' => $places,
6871
'transitions' => $transitions,

0 commit comments

Comments
 (0)