-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature][converter/cli]: defaultJobTypeEnabled
as flag
#276
Conversation
Hi @jonathanlukas and @ManuelDittmar, as this change leaves the task type empty, the process model requires rework depending on the amount of service tasks before you can deploy it to the Zeebe engine. It's no problem for the test model with a single task. But in case you have 20 or more service tasks, it's a tedious task to fill all task types. My suggestions: use the As a developer it is easier to start the migration at the beginning of your process and move from task to task, create the worker for the next task, deploy and test the process. What do you think? |
Hi @ingorichtsmeier, I agree, maybe it's better if the diagram can be deployed easily. Should not make a difference if one needs to replace a job type or provide a value for an empty job type. My main motivation for the FR was to not only allow the adapter implementation as a migration option (currently you would need to remove the header for each service task). I would vote for the neutral default name, as using the If defining your custom job type, the command would look confusing:
|
@ManuelDittmar actually the stated command would not add any job type. The logic is:
Is there a documentation gap we should close? |
@jonathanlukas I was referring to @ingorichtsmeier s comment about no job type vs. using --adapter-job-type as a default task type. Or provide a neutral default name logging. And not to your implementation. based on ingos comment I understood the scenario "configure disable-adapter: no job type is applied" is not ideal, because you cannot deploy the diagram. So he would like to see the scenario "configure disable-adapter: --adapter-job-type as a default task type /neutral job type is applied" If the job type should not be empty, I think it would be better to have a neutral job type instead of using the --adapter-job-type |
I see. Sorry, this was not clear. I would suggest to just rename the parameter adapter-job-type to default-job-type and remove the second flag. wdyt @ingorichtsmeier @ManuelDittmar ? |
Sounds much better than the first approach. And to clarify: |
Great that we are aligned now. But still, it would add a header that contains the implementation details of the C7 service task |
255492a
to
28f5bb9
Compare
defaultJobTypeEnabled
as flag
@ManuelDittmar @ingorichtsmeier I added a commit that would change the names of the flags: I think the first flag will help to understand what happens here. I think the problem was that the understanding of the term adapter job type is not clear to everybody, so default job type will suit better. Also, I thought about the second flag and remembered a customer conversion from last year. I presented to them the converter and the adapter and they said they would like to refactor their code, so there was no need for them to have a job type in place at all. Also, when using External Tasks or C7 Connectors, these flags will have no effect. |
defaultJobTypeEnabled
as flagdefaultJobTypeEnabled
as flag
70116bb
to
c7f71ea
Compare
Description
Currently, the converter assumes that the adapter is used afterwards to execute the service tasks being implemented with gateways before.
This new feature allows to not automatically define a job type.
Additional context
closes #264
Testing your changes
There are tests in place that assert the positive and negative flag behaviour
Types of changes
Checklist: