Modeller template conditional property

Hi all,

I am creating a custom template for modeller to use for userTasks. My template as following:

{
    "name": "Starter Eligibility Setting",
    "id": "com.camunda.example.CheckInvoiceTask",
    "appliesTo": [
      "bpmn:UserTask"
    ],
    "properties": [
	  {
        "label": "Is Starter Eligible After",
        "type": "Boolean",
        "binding": {
			"type": "camunda:property",
			"name": "isStarterEligible"
		}
	  },
	  {    
		"value": "execution.setVariableLocal(isOkey,true)",
		"type": "Hidden",
		"binding": {
			"type": "camunda:executionListener",
			"event": "start",
			"scriptFormat": "groovy"
		}
	  }
    ]
  }

I want to add groovy script according to value of the first boolean property. Is there any way to realize this?

Thanks

Hi @alimehdi, welcome!

As far as I know, it’s currently not possible to conditionally set properties from a template. If you’d like to see it, feel free to open a feature request on GitHub. :+1:

We’d really appreciate it if you could also give a bit more details about your use case and how you would imagine the template JSON to look like to define such “conditions” for a property :slight_smile:

Hi Niklas,

Thanks for the answer. As you suggested, I will open a feature request with detailed information. :slight_smile: