Skip to content
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

Migrate to Zeebe 1.x #90

Closed
saig0 opened this issue Sep 22, 2021 · 6 comments · Fixed by #91
Closed

Migrate to Zeebe 1.x #90

saig0 opened this issue Sep 22, 2021 · 6 comments · Fixed by #91
Labels
enhancement New feature or request hacktoberfest

Comments

@saig0
Copy link
Contributor

saig0 commented Sep 22, 2021

Currently, the project uses a Zeebe client 0.26.x. In order to support the new Zeebe/Camunda Cloud versions >= 1.0, we need to update the Zeebe client.

Similar projects are already migrated, for example, camunda-community-hub/zeebe-simple-monitor#250.

@saig0 saig0 added enhancement New feature or request hacktoberfest labels Sep 22, 2021
@tbfly
Copy link

tbfly commented Nov 25, 2021

Hello, I'm trying to dig this problem.
Now, in 1.x+, we need HazelcastService to read all jobrecord? While in 0.26 we have UserTaskJobHandler to add "taskForm" and "Variables".
Will you please, guide me where to start?@saig0
Now,I can read task/job info from ZeebeHazelcast, but I can't find a method to read "taskForm".
Do I need to check zeebe-simple-monitor path, use ZeebeImportService to get process/instance resource, then get "taskForm" to show?
Thx!

@saig0
Copy link
Contributor Author

saig0 commented Nov 25, 2021

@tbfly awesome that you want to contribute 🚀

Now, in 1.x+, we need HazelcastService to read all jobrecord?

No. We can still use the job worker to read the tasks. The formKey is stored as io.camunda.zeebe:formKey in the task headers.

But it order to read the form, we need to import the process record. The form is stored in the process extension zeebe:userTaskForm.

@tbfly
Copy link

tbfly commented Nov 25, 2021

@tbfly awesome that you want to contribute 🚀

Now, in 1.x+, we need HazelcastService to read all jobrecord?

No. We can still use the job worker to read the tasks. The formKey is stored as io.camunda.zeebe:formKey in the task headers.

@saig0 Thx, I will check this path. Now, I just use HazelcastService to load the exist taskinfo in jobrecord.
By now, #87
this issue: 87 is sloved.

But it order to read the form, we need to import the process record. The form is stored in the process extension zeebe:userTaskForm.

Exactly! I found this way too. "UserTaskJobHandler" still useful for import userService job, "taskForm" and "formFields" info.

I just found the Demo.java code useful to test for load taskForm and formFields.
#90 (comment)

@tbfly
Copy link

tbfly commented Nov 30, 2021

@tbfly awesome that you want to contribute 🚀

Now, in 1.x+, we need HazelcastService to read all jobrecord?

No. We can still use the job worker to read the tasks. The formKey is stored as io.camunda.zeebe:formKey in the task headers.

@saig0 Thx, I will check this path. Now, I just use HazelcastService to load the exist taskinfo in jobrecord. By now, #87 this issue: 87 is sloved.

But it order to read the form, we need to import the process record. The form is stored in the process extension zeebe:userTaskForm.

Exactly! I found this way too. "UserTaskJobHandler" still useful for import userService job, "taskForm" and "formFields" info.

I just found the Demo.java code useful to test for load taskForm and formFields. #90 (comment)

#88

Some update by using [io.camunda.zeebe:formKey].

@saig0
Copy link
Contributor Author

saig0 commented Aug 22, 2022

Done by #91 🚀

@saig0 saig0 closed this as completed Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants