cancel
Showing results for 
Search instead for 
Did you mean: 

binary form: GetRenderedStartFormCmd vs GetStartForm w/ rest

markjans
Champ in-the-making
Champ in-the-making
Hi,

I'd like to load a binary actionscript module as a process definition form via the activiti-rest webapp, however the exception below is thrown by the juel engine during processing.

I can see the GetRenderedStartFormCmd vs GetStartForm in the codebase, but is there a way to cause the restful webapp to load the form unrendered?

Many thanks,
Mark


´┐¢A    Yt´┐¢♣´┐¢`´┐¢◄+´┐¢I5Q☺<f♥J´┐¢´┐¢z´┐¢→I´┐¢←´┐¢´┐¢8┘Ö´┐¢´┐¢2X´┐¢´┐¢$´┐¢;0@[)´┐¢k^y´┐¢Lr´┐¢´┐¢0∟´┐¢O´┐¢´┐¢♂o´┐¢´┐¢ ´┐¢uG4´┐¢P´┐¢◄D´┐¢89p´┐¢▼´┐¢%´┐¢@▀æ´┐¢´┐¢∟┌Â☺´┐¢´┐¢´┐¢´┐¢´┐¢´┐¢´┐¢ t4 ´┐¢´┐¢': l
exical error at position 1,757, encountered invalid character '´┐¢', expected expression token
        at org.activiti.engine.impl.scripting.ScriptingEngines.evaluate(ScriptingEngines.java:69)
        at org.activiti.engine.impl.form.JuelFormEngine.renderStartForm(JuelFormEngine.java:40)
        at org.activiti.engine.impl.cmd.GetRenderedStartFormCmd.execute(GetRenderedStartFormCmd.java:61)
        at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:22)
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:37)
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
        at org.activiti.engine.impl.FormServiceImpl.getRenderedStartForm(FormServiceImpl.java:36)
        at org.activiti.rest.api.process.ProcessDefinitionFormGet.executeStreamingWebScript(ProcessDefinitionFormGet.java:32)
        at org.activiti.rest.util.ActivitiStreamingWebScript.execute(ActivitiStreamingWebScript.java:65)
        at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:69)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
Currently, there is no way of getting an unrendered form from REST.

There is an issue that describes this functionality: http://jira.codehaus.org/browse/ACT-269

markjans
Champ in-the-making
Champ in-the-making
Thanks for the reply Frederik.

So would the recommended solution be to return a 'form' with the path to the deployment artifact ?

frederikherema1
Star Contributor
Star Contributor
Mark,

Indeed, use the formResourceKey on the Task (or startFormResourceKey on ProcessDefinition) as resource-name, and use:

GET /deployment/{deploymentId}/resource/{formResourceKey}
This is a workaround, so keep this in mind.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.