This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NeedsApprovalDelegate implements org.activiti.engine.delegate.JavaDelegate | |
{ | |
private static Set<String> imagesWithCopyright = new HashSet<String>(); | |
static { | |
imagesWithCopyright.add("mule1.jpg"); | |
imagesWithCopyright.add("mule2.jpg"); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ChargeDelegate implements org.activiti.engine.delegate.JavaDelegate | |
{ | |
private Expression wsdl; | |
private Expression operation; | |
private Expression parameters; | |
private Expression returnValue; | |
public void execute(DelegateExecution execution) throws Exception | |
{ | |
String wsdlString = (String) wsdl.getValue(execution); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Picture Approval</h1> | |
<p> | |
The user: <b>${user}</b> wants the high definition version of the image <b>${imageName}</b>. | |
</p> | |
<p> | |
Do you approve this? | |
<select name="approvalConfirmed"> | |
<option value="true">Yes</option> | |
<option value="false">No</option> | |
</select> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ajax:endpoint name="ajax-endpoint" channel="/requestCharged"/> | |
<flow name="chargeAccount"> | |
<inbound-endpoint address="http://localhost:8291/chargeService" /> | |
<cxf:jaxws-service serviceClass="com.picturerequest.ChargeServiceImpl" /> | |
<component class="com.picturerequest.ChargeServiceImpl" /> | |
<outbound-endpoint ref="ajax-endpoint" exchange-pattern="one-way"/> | |
</flow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@WebService(endpointInterface = "com.picturerequest.ChargeService", serviceName = "ChargeService") | |
public class ChargeServiceImpl implements ChargeService | |
{ | |
public String chargeAccount(String username, String imageName) | |
{ | |
//do some stuff to charge the username | |
return imageName; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<target name="evaluateActivitiModule" depends="activiti.stopCleanAndStart, activiti.deployMultiplier"> | |
<exec executable="sleep" failifexecutionfails="false" failonerror="false"> | |
<arg value="30" /> | |
</exec> | |
<exec dir="${activiti.module.home}" executable="mvn" failifexecutionfails="false" failonerror="false"> | |
<arg value="clean" /> | |
<arg value="install" /> | |
<arg value="-Dactiviti.version=${activiti.version}" /> | |
</exec> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.activiti</groupId> | |
<artifactId>activiti-engine</artifactId> | |
<version>${activiti.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.activiti</groupId> | |
<artifactId>activiti-spring</artifactId> | |
<version>${activiti.version}</version> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<spring:bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration"> | |
<spring:property name="jdbcUrl" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000" /> | |
<spring:property name="jdbcDriver" value="org.h2.Driver" /> | |
<spring:property name="jdbcUsername" value="sa" /> | |
<spring:property name="jdbcPassword" value="" /> | |
<spring:property name="databaseSchemaUpdate" value="true" /> | |
<spring:property name="jobExecutorActivate" value="false" /> | |
</spring:bean> | |
<spring:bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<jms:activemq-connector name="jmsConnector" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activiti:connector name="activitiServer" version="5.5" | |
repositoryService-ref="repositoryService" | |
runtimeService-ref="runtimeService" | |
taskService-ref="taskService" | |
historyService-ref="historyService" /> |