Are templates available in custom modules?
Could I potentially build a custom module that will add a specified amount of steps including custom and/or core steps? i.e. Database multi insert.
Are templates available in custom modules?
Could I potentially build a custom module that will add a specified amount of steps including custom and/or core steps? i.e. Database multi insert.
Yes you can use indeed the steps template in your custom module. Just add all the predefined steps there like:
{
groupTitle : 'S3 Connector',
groupIcon : 'fas fa-lg fa-cloud-upload comp-files',
title : 'S3 Sign Upload Template',
icon : 'fas fa-lg fa-cloud-upload comp-files',
state : 'opened',
firstRule: 's3',
globalVars: {
'$_GET' : [
{"name": "name", "type": "text"}
]
},
template : [
{
"name": "s3",
"module": "s3",
"action": "provider",
"options": {
"endpoint": "",
"accessKeyId": "",
"secretAccessKey": ""
}
},
{
"name": "sign",
"module": "s3",
"action": "signUploadUrl",
"options": {
"provider": "s3",
"bucket": "",
"key": "{{$_GET.name}}"
},
"outputType": "text"
},
{
"name": "url",
"module": "core",
"action": "setvalue",
"options": {
"value": "{{sign}}"
},
"output": true
}
]
}
Great!
Thanks!