Newbie: Modeler or Eclipse

Hey everybody, I am looking for a process engine, that supports business process. Installed: Camunda Apps (Cockpit, Taslist, Admin) - last version, Camunda Modeler Version: 2018-12 (4.10.0) and Eclipse Version: 2018-12 (4.10.0).

We have some User-groups to assign (Technic, Accounting, Verkauf, HR) and we need processes only on a low level:

  1. We need forms
  2. We need sending notification-Emails
  3. attachments should be at a moment of a process uploadable
    (later: saving documents to Alfresco-sites/repository)

I am an End-User, no developer. What ist the best way to create those processes:
a) using Camunda Modeler
a.1) (https://github.com/camunda-consulting/code/tree/master/snippets/camunda-modeler-plugins/camunda-modeler-plugin-usertask-generatedform-preview)
b.2) ?
b.3) ?

b) using Eclipse Apache Maven
b.0) what is the standard for preparing POM, found different suggestions
b.1) ?
b.2) ?
b.3) ?

Answers would be nice. I looked much (youtube, forum, starting sites - and I had some success :slight_smile: ) but in the beginning it is difficult to get, what is needed and how it is to implement.

And if somebody has expierences with the alfresco connection (process fetches document and save it later edited back or at another site) - welcome.

Hi @MME3 and welcome to the forum,

I can recommend you the Learn Camunda with Niall videos on youtube. They will give you the basics you need to create and deploy processes.

If I understand you correctly, you wonder if you can create a Process with the given specifications in Eclipse or the Modeler.
In general, there are many ways to create the workflow you need and you wonā€™t be able to do everything in only one of the two application without a lot of unnecessary work.
E.G. sending Emails could be done easily as a Service Tasks (Java Delegate), but you do want to model your processes and manage the methods to call using the modeler.

Does this help you?

KR
Martin

2 Likes

Thanks for the fast response! :slight_smile: Some Niall-Videos i have seen before. Are there simple process examples for Modeler and Eclipse where I can have a look to ? Especially about, what is the general Apache Maven code structure in pom.xml? That would be the best. On the camunda.org page there is an article: https://docs.camunda.org/get-started/apache-maven/ but for me the ā€œprocessā€ to make an easy apache-maven-process writing is unclear. What I need in the basic? Dependencies, build? Is there a file, where I can copy/paste it (Niall talked about that and meant, that this file/code could be found easily on the camunda page but i donĀ“t find it) ?

What means Java delegate? Do you have a link to? I know, that are basic questions, but that are my problems.

Than: https://docs.camunda.org/get-started/
Is there an article when I need Spring Boot, Spring Framework, Java Process Application, Java EE7? I am an end-user, only a little budget of time, willing to work in, but in the beginning it is hard to get, what I need and where I should put time in for learning. At the end I want only have basic processes, some forms, announcements via Email and possibility to upload/download a file.

Thanks for answer, everything is helping :slight_smile:

Hey @MME3 ,

if you just want to get going quickly, I recommend you try the getting started guide first. It covers forms, Java/External Tasks (which you can use to send mails) and how to get it running from the start. I think many of your questions will become clear by then.

Unfortunately I canā€™t help you much with Spring, if you have questions in that regard consider posting them in the Spring Boot Starter Section.

If you get stuck at any point, donā€™t hesitate to ask for help.

KR
Martin

Hey thanks for response. I am in the tutorium here now: https://docs.camunda.org/get-started/quick-start/gateway/
I can deploy the Gateway-process but I cannot start it in ā€œTasksā€. I get the information:
" The process could not be started. : Cannot instantiate process definition payment-retrieval:6:53f7c273-90e4-11e9-8959-0242ac140003: Unknown property used in expression: ${amount<1000}. Cause: Cannot resolve identifier ā€˜amountā€™ ".
Then I upload the downloadable Code and got the same notification. Seems that the variable ā€œamountā€ have to defined somewhere else? Anybody an idea?

If you start the process using Tasklist, there should be a button Add a variable right below the input field for a Business Key. You can add the amount variable there :slight_smile:

2 Likes

This was the solution, probably you write that hint in the tutorial. But I have to write that variable each time when I start in ā€œTasksā€ a new process. If I have many variables, than I would have much to doā€¦

A 2nd thing I donĀ“t understand; why I have to implement an external task worker in Step1? I can start the process with curl, but ā€œwhereā€ is the external worker?

You can start processes with the REST or Java-API and pass all the information there. You can also attach a form to the start event which can give you a nicer data entry experience.

The External Task worker periodically queries the engine for tasks it is subscribed to. It is not visible from the engine and shows how you can implement functionality outside of the engine/integrate it into your own software

1 Like

Thanks, I finished successfully the tutorium. For the tutorium, especially step1, I would request for the hint, why somebody should to implement an external worker and for what. In Step 4 the hint for adding a variable after starting a process via Tasks would be an important information.

How can I upload an attachment in a form?

1 Like

I guess this is the attchment solution: uploadable documents, wwhich are presentend in different steps in a process. https://github.com/camunda/camunda-bpm-platform/blob/e7a498386b249516c8a3245fab8147efd8159924/engine/src/main/java/org/camunda/bpm/engine/TaskService.java#L920

But what would be the procedere in detail? Have I past the code from line 920 to eclipse Apache Maven like in the Tutorial Step 1 " Add the Java class" ? Because the code seems to be different and I guess, it isnĀ“t cmpleted for using it via Eclipse. Furthermore, i want to do a form with some informations and the uploadoption. For modelling my example, i ve to use Eclipse, not Modeler (because the lack of the uploadoption in Camunda Modeler). Sorry, IĀ“am in the beginning, thanks for support

My example:

  1. user uploads a document that should be approved/rejected or just commented through a supervisor.
  2. After the supervisor accepted that document the next group have to comment the document.
  3. The supervisor gets back the document and the group-comment - just for noticing.

Hi @MME3,

have a look into the invoice example included in a downloadable distribution. The code can be expeceted here: https://github.com/camunda/camunda-bpm-platform/tree/master/examples/invoice.

The invoice process includes a process with user tasks and forms and the invoice has to be uploaded in the start form.

Hope this helps, Ingo

1 Like

thanks for the hint, yes that example is a good idea.

I downloadad that file. I canĀ“t follow mvn clean jetty:run -Pdevelop
on my iterm Mac. What IĀ“ve to do in eclipse to let me show the code for that invoice example.

Besides that: I have some notes for the tutorial, to whom I can adress that?

Hi @MME3,

in Eclipse you can import an existing maven project. It starts under the File menu, select Importā€¦ and look for maven in the wizard. then navigate to pom.xml file of the project on your harddisc.

As youā€™re touching the developer space here, you should make yourself familiar with the priciples of maven projects from the java developer point of view. I assume that there a lot of tutorials out there on the web.

Hope this helps, Ingo

Thanks, didnĀ“t remember that input-command. I imported the invoice example in Eclipse, opened main/resources/invoice.v2.bpmn and I want to adjust that example to my needs of Key-Requesting. I re-definded the Approver-Group in the decision table:
The following Manual Task refers to the candidate group. How is it possible to give each candidate group another form: f.e.: i ve 5 different inputs and 5 different approver groups. Each approver group has its own from to fill out. 5 Manual Tasks with the explicit candidate group? For creating forms I have to go here: main/webapp/forms
IĀ“ve to embed the forms with: embedded:app:forms/name-of-the-form.html in the register forms of the manual task. ?

Hi @MME3,

itā€™s not offcially documented and there is no JUnit test as regression against it, but the formKey is evaluated as an expression: https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java#L2623-L2627.

You can fill the value dynamically based on a bean or a process variable: https://docs.camunda.org/manual/develop/user-guide/process-engine/expression-language/. So, it is possible to use 5 different forms for different candidateGroups in a User Task.

Embedded forms are only one option out of others: https://docs.camunda.org/manual/develop/user-guide/task-forms/, but the most powerful option.

If you have your own framework to identify forms as existing components, you interpret the formKey by yourself: https://docs.camunda.org/manual/develop/reference/bpmn20/tasks/user-task/#forms

Hope this helps, Ingo