Skip to content

Commit 4c93832

Browse files
committed
Exporting process category
1 parent 1f0c977 commit 4c93832

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

‎ProcessMaker/Jobs/ExportProcess.php‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,25 @@ public function __construct(Process $process, $filePath = null)
2929
$this->filePath = $filePath;
3030
}
3131

32-
private function packageFile()
32+
private function packageProcess()
3333
{
34-
$this->package['type'] = 'process_package';
35-
$this->package['version'] = '0.1';
3634
$this->package['process'] = $this->process->toArray();
3735
$this->package['process']['bpmn'] = $this->process->bpmn;
3836
}
3937

38+
private function packageProcessCategory()
39+
{
40+
$this->package['process_category'] = $this->process->category->toArray();
41+
}
42+
43+
private function packageFile()
44+
{
45+
$this->package['type'] = 'process_package';
46+
$this->package['version'] = '1';
47+
$this->packageProcess();
48+
$this->packageProcessCategory();
49+
}
50+
4051
private function encodeFile()
4152
{
4253
$this->file = json_encode($this->package);

0 commit comments

Comments
 (0)