Feat/add workflow sys params (#9108)
Co-authored-by: Joel <iamjoel007@gmail.com>
This commit is contained in:
parent
62051d5171
commit
e947103b6d
12 changed files with 74 additions and 3 deletions
|
|
@ -116,6 +116,19 @@ const formatItem = (
|
|||
variable: 'sys.files',
|
||||
type: VarType.arrayFile,
|
||||
})
|
||||
res.vars.push({
|
||||
variable: 'sys.app_id',
|
||||
type: VarType.string,
|
||||
})
|
||||
res.vars.push({
|
||||
variable: 'sys.workflow_id',
|
||||
type: VarType.string,
|
||||
})
|
||||
res.vars.push({
|
||||
variable: 'sys.workflow_run_id',
|
||||
type: VarType.string,
|
||||
})
|
||||
|
||||
break
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -121,6 +121,39 @@ const Panel: FC<NodePanelProps<StartNodeType>> = ({
|
|||
</div>
|
||||
}
|
||||
/>
|
||||
<VarItem
|
||||
readonly
|
||||
payload={{
|
||||
variable: 'sys.app_id',
|
||||
} as any}
|
||||
rightContent={
|
||||
<div className='text-xs font-normal text-gray-500'>
|
||||
String
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
<VarItem
|
||||
readonly
|
||||
payload={{
|
||||
variable: 'sys.workflow_id',
|
||||
} as any}
|
||||
rightContent={
|
||||
<div className='text-xs font-normal text-gray-500'>
|
||||
String
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
<VarItem
|
||||
readonly
|
||||
payload={{
|
||||
variable: 'sys.workflow_run_id',
|
||||
} as any}
|
||||
rightContent={
|
||||
<div className='text-xs font-normal text-gray-500'>
|
||||
String
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
|
||||
</>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue