Why it’s not possible to edit the implementation/operation definition for a service task in the property panel?
This properties are official possible and also defined in the bpmn-moddle:
And i don’t want the camunda provider, because camunda are custom and not offical bpmn2 properties.
The reason is, I must define the system operation in the service task do know in the process engine what is to do.
In Eclipse it is normal and possible to edit this properties.
Or if i understand the behavior/goal of bmpn-js wrong?
It seems we haven’t implemented that property in the properties panel. If you need it in your project, you can create an extension which would add this. This example should be a good starting point.
Whats the reason, that this properties are not implement?
Add the moment I play with the example you say. But I dont get it working (yarn and webpack).
No tab, no error, but the js files are loaded, but no function call to MagicPropertiesProvider.
Okay, now the example running and I tried to implement properties for implementation/operation.
The implementation is okay, but with the operation I have a problem to set it.
I try to implement the operation passed on this code:
I think you already mentioned the correct example. When you have a look a the setter, you have to ensure to set the full object as operationRef, not only the string.
Using the elementRegistry won’t work for operations I guess (because they aren’t shapes on the canvas), so you’ll have to get the list of operations in another way.
Yes, I know that the operation must present in the XML.
And this to helper was perfect as base
Now I have a running extension that supports “operationRef” in that scope I needed.
Here the sandbox:
One last question, im my project, I has no static operation selects. I obtain it via an ajax call.
At the moment, the url is hardcoded. How can I pass this as an configuration from the point I initiales the modeler with the new module?