Hi Christian,
thanks for Replying. I run the Spring example from the camunda Site.
the Spring Bean is properly initialized by spring.
But my problem is that i try to build a Spring, JSF , Hibernate Application
with a tasklist inside my Application. I dont use the CDI Engine to complete my Task in my application, but i use the Spring Engine.
For example in my JSF: "taskListBean.completeTask()" Call the completeTask from the Spring Bean Taskservice.
<p class="formLabel">
<label for="name">Ist die ertragsteuerliche Versteuerung korrekt?</label></p>
<h:selectOneMenu value="#{processVariables['checkIncomeTaxAppreciation']}" required="true">
<f:selectItem itemLabel="Ja" itemValue="Ja" />
<f:selectItem itemLabel="Nein" itemValue="Nein" />
</h:selectOneMenu>
<p class="formLabel"><label for="name">Kommentar des Prüfers</label></p>
<h:inputTextarea id="checkIncomeTaxAppreciationComment"
value="#{processVariables['checkIncomeTaxAppreciationComment']}" cols="30" rows="10"/>
<br></br>
<f:facet name="footer">
<h:panelGroup style="display:block; text-align:left">
<h:commandButton styleClass="buttom" id="submit_button" value="Aufgabe
erledigen" action="#{taskListBean.completeTask()}"/>
</h:panelGroup>
</f:facet>
</h:panelGrid>
In my TasklistBean: this Method will be called. "taskService.complete(taskId)". (The TaskId will be get from the requestparameter)
My Problem ist that the condition Processvariable set in the JSF : "#{processVariables['checkIncomeTaxAppreciation']} and defined in my processmodel will not be resolved by the Spring Engine. The Property is unknow from the engine and the Sequenceflow can not be performed.
With the CDI Engine., when i compete the task through "taskform.completeTask()"
all processvariable set in JSF will be recognized from the engine and the sequenceflow will be perfomed. My Question:
Can i build in my J2EE Application my own tasklist with Spring and JSF ? or I have to follow the approach CDI, JSF, EJB and JPA.
thanks and Cheers.
Marcel