cancel
Showing results for 
Search instead for 
Did you mean: 

Starting form and exception - Failure

ivan_hajdinjak
Champ in-the-making
Champ in-the-making
Greetings

I have a problem with firing a form in explorer - Show start form. BAR file has all the resources that he need, and the path to form is correct.

org.activiti.engine.ActivitiException: Form with formKey ‘/diagrams/request.form’ does not exist
at org.activiti.engine.impl.form.JuelFormEngine.getFormTemplateString(JuelFormEngine.java:63)
at org.activiti.engine.impl.form.JuelFormEngine.renderTaskForm(JuelFormEngine.java:47)
[…]

Please help,

True regards,
Ivan Hajdinjak
4 REPLIES 4

arno1
Champ in-the-making
Champ in-the-making
Hello,
you could try the following steps:
Copy out your bpmn20.xml file into a directory of your choice. In the same directory you copy your forms you use (but pay attention to the correct path structure: so when the bpmn20.xml file is located at lets say C:\yourProcess.bpmn20.xml and in this diagram there's a task which references to yourForm.form this file should be also located at C:\. However do not use abolute path structures.).
Then you select the used files and generate a *.zip out of it and then you deploy this *.zip file by using Activiti Probe.

ivan_hajdinjak
Champ in-the-making
Champ in-the-making
Nope, it doesn't work.  :?

ivan_hajdinjak
Champ in-the-making
Champ in-the-making
here is the bpmn20.xml file, just the start of it :

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlnsSmiley Surprisedmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsSmiley Surprisedmgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
  <process id="testProject" name="testProject">
    <startEvent id="startevent1" name="Start" activiti:formKey="request"/>

I tried with /request.form, request.form, request …. and any of it doesn't work. I'm desperate, 3 days i'm fixing this.

ivan_hajdinjak
Champ in-the-making
Champ in-the-making
Resolved: in activity.cfg.xml was class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration" and I changed it to class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration" and it worked Smiley Happy