fantato (3) [Avatar] Offline
#1
Hello guys,

I am trying to run the example in Chapter 10 but it only work with the regular form types. If I try to use the types: "user" or "textarea". I get this exception:


Caused by: org.activiti.engine.ActivitiException: unknown type 'user' | org/activiti/explorer/demo/process/testProcess.bpmn20.xml | line 12 | column 92
unknown type 'textarea' | org/activiti/explorer/demo/process/testProcess.bpmn20.xml | line 15 | column 88

at org.activiti.engine.impl.util.xml.Parse.throwActivitiExceptionForErrors(Parse.java:186)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:222)
at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:86)
at org.activiti.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:3smilie
at org.activiti.engine.impl.persistence.deploy.DeploymentCache.resolveProcessDefinition(DeploymentCache.java:91)
at org.activiti.engine.impl.persistence.deploy.DeploymentCache.findDeployedProcessDefinitionById(DeploymentCache.java:53)
at org.activiti.engine.impl.cmd.GetStartFormCmd.execute(GetStartFormCmd.java:40)
at org.activiti.engine.impl.cmd.GetStartFormCmd.execute(GetStartFormCmd.java:30)
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
at org.activiti.engine.impl.FormServiceImpl.getStartFormData(FormServiceImpl.java:52)
at org.activiti.explorer.ui.process.listener.StartProcessInstanceClickListener.buttonClick(StartProcessInstanceClickListener.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:490)
... 22 more


Do you have any idea to fix it? I already try to get the source code form activiti-explorer and implements the examples from scratch, but I got the same error.


Thanks
Fantato
tijs.rademakers (494) [Avatar] Offline
#2
Re: Exception trying to run the example in Chapter 10 (Custom Forms)
Hi Fantato,

That the user type is not working is really strange, because that's already available when you download Activiti 5.9. Which version of Activiti are you running? Are you running the Activiti Explorer webapp as it is installed in the Activiti setup script?
When do you het the exception as shown in your post?
I just deployed a process definition with a user form type without any problem.

Best regards,
fantato (3) [Avatar] Offline
#3
Re: Exception trying to run the example in Chapter 10 (Custom Forms)
Regarding the activiti, I am using the version 5.9. For running the custom forms explained on chapter 10, I tried two options:

First, I got the latest version of book sample sources and I was trying to run the book-explorer-form.

Next, I got the original activiti-explorer source code and I did all steps from this chapter. But, I got the same error.

The exception has been thrown when I start the process and the engine enters will render the form.

It is really a very strange bevahior. I will try to get the source code again, maybe my environment was compromised. I let you know if it works or not.

Thanks
Fantato
fantato (3) [Avatar] Offline
#4
Re: Exception trying to run the example in Chapter 10 (Custom Forms)
I got the entire code of activiti-webapp-explorer2 from svn repository and I did the exercise again. It works fine.

I guess the problem was that the example book-explorer-form has some missing files. If you use it as starting point, it will not work. But if you use the original source code, it is ok.

Thanks for your help
Fantato