mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Turned down the volume on several time consuming tests. Snapshot of currently
not working WCM workflow. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4247 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -160,6 +160,12 @@
|
|||||||
<bean id="workflowBootstrap" parent="workflowDeployer">
|
<bean id="workflowBootstrap" parent="workflowDeployer">
|
||||||
<property name="workflowDefinitions">
|
<property name="workflowDefinitions">
|
||||||
<list>
|
<list>
|
||||||
|
<props>
|
||||||
|
<prop key="engineId">jbpm</prop>
|
||||||
|
<prop key="location">alfresco/workflow/wcmSubmit.xml</prop>
|
||||||
|
<prop key="mimetype">text/xml</prop>
|
||||||
|
<prop key="redeploy">false</prop>
|
||||||
|
</props>
|
||||||
<props>
|
<props>
|
||||||
<prop key="engineId">jbpm</prop>
|
<prop key="engineId">jbpm</prop>
|
||||||
<prop key="location">alfresco/workflow/review_processdefinition.xml</prop>
|
<prop key="location">alfresco/workflow/review_processdefinition.xml</prop>
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
</bean>
|
</bean>
|
||||||
<bean id="sessionFactoryBase" abstract="true">
|
<bean id="sessionFactoryBase" abstract="true">
|
||||||
<property name="schemaUpdate">
|
<property name="schemaUpdate">
|
||||||
<value>false</value>
|
<value>true</value>
|
||||||
</property>
|
</property>
|
||||||
<property name="mappingResources">
|
<property name="mappingResources">
|
||||||
<list>
|
<list>
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
<task-node name="setup">
|
<task-node name="setup">
|
||||||
<task name="wcmwf:setupSubmit" swimlane="initiator">
|
<task name="wcmwf:setupSubmit" swimlane="initiator">
|
||||||
<controller>
|
<controller>
|
||||||
<variable name="assignee" access="write" mapped-name="wcmwf:assignee"/>
|
<variable name="assignee" access="write" mapped-name="bpm:assignee"/>
|
||||||
<variable name="description" access="write" mapped-name="wcmwf:description"/>
|
<variable name="description" access="write" mapped-name="wcmwf:description"/>
|
||||||
<variable name="package" access="write" mapped-name="bpm:package"/>
|
<variable name="package" access="write" mapped-name="bpm:package"/>
|
||||||
<variable name="workflowcontext" access="write" mapped-name="bpm:context"/>
|
<variable name="workflowcontext" access="write" mapped-name="bpm:context"/>
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
</task-node>
|
</task-node>
|
||||||
|
|
||||||
<swimlane name="assignee">
|
<swimlane name="assignee">
|
||||||
<assignment actor-id="#{assignee.properties['cm:userName']}"/>
|
<assignment actor-id="#{bpm_assignee.properties['cm:userName']}"/>
|
||||||
</swimlane>
|
</swimlane>
|
||||||
|
|
||||||
<task-node name="review">
|
<task-node name="review">
|
||||||
|
@@ -22,30 +22,21 @@
|
|||||||
<type>d:text</type>
|
<type>d:text</type>
|
||||||
</property>
|
</property>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
||||||
</type>
|
</type>
|
||||||
|
|
||||||
<type name="wcmwf:startSubmit">
|
<type name="wcmwf:startSubmit">
|
||||||
<title>Submit Web Content</title>
|
<title>Submit Web Content</title>
|
||||||
<parent>wcmwf:baseSubmitTask</parent>
|
<parent>wcmwf:baseSubmitTask</parent>
|
||||||
|
<mandatory-aspects>
|
||||||
|
<aspect>bpm:assignee</aspect>
|
||||||
|
</mandatory-aspects>
|
||||||
</type>
|
</type>
|
||||||
|
|
||||||
<type name="wcmwf:setupSubmit">
|
<type name="wcmwf:setupSubmit">
|
||||||
<title>Submit Web Content</title>
|
<title>Submit Web Content</title>
|
||||||
<parent>wcmwf:baseSubmitTask</parent>
|
<parent>wcmwf:baseSubmitTask</parent>
|
||||||
<associations>
|
|
||||||
<association name="wcmwf:assignee">
|
|
||||||
<title>The Reviewer</title>
|
|
||||||
<source>
|
|
||||||
<mandatory>false</mandatory>
|
|
||||||
<many>false</many>
|
|
||||||
</source>
|
|
||||||
<target>
|
|
||||||
<class>cm:person</class>
|
|
||||||
<mandatory>true</mandatory>
|
|
||||||
<many>false</many>
|
|
||||||
</target>
|
|
||||||
</association>
|
|
||||||
</associations>
|
|
||||||
</type>
|
</type>
|
||||||
|
|
||||||
<type name="wcmwf:review">
|
<type name="wcmwf:review">
|
||||||
|
@@ -35,9 +35,9 @@ public class AVMCrawlTest extends AVMServiceTestBase
|
|||||||
*/
|
*/
|
||||||
public void testCrawl()
|
public void testCrawl()
|
||||||
{
|
{
|
||||||
int n = 2; // Number of Threads.
|
int n = 1; // Number of Threads.
|
||||||
int m = 2; // How many multiples of content to start with.
|
int m = 1; // How many multiples of content to start with.
|
||||||
long runTime = 600000; // Ten minutes
|
long runTime = 120000; // 2 minutes
|
||||||
fService.purgeAVMStore("main");
|
fService.purgeAVMStore("main");
|
||||||
BulkLoader loader = new BulkLoader();
|
BulkLoader loader = new BulkLoader();
|
||||||
loader.setAvmService(fService);
|
loader.setAvmService(fService);
|
||||||
|
@@ -35,8 +35,8 @@ public class AVMStressTest extends AVMServiceTestBase
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
int nCopies = 2;
|
int nCopies = 1;
|
||||||
int nThreads = 2;
|
int nThreads = 1;
|
||||||
BulkLoader loader = new BulkLoader();
|
BulkLoader loader = new BulkLoader();
|
||||||
loader.setAvmService(fService);
|
loader.setAvmService(fService);
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
|
@@ -32,7 +32,7 @@ public class SimultaneousLoadTest extends AVMServiceTestBase
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
int n = 4;
|
int n = 1;
|
||||||
int m = 1;
|
int m = 1;
|
||||||
fReaper.setInactiveBaseSleep(60000);
|
fReaper.setInactiveBaseSleep(60000);
|
||||||
for (int i = 0; i < n; i++)
|
for (int i = 0; i < n; i++)
|
||||||
|
@@ -100,6 +100,7 @@ public class StartAVMWorkflowAction extends ActionExecuterAbstractBase
|
|||||||
fgLogger.error(wfParams.get(name));
|
fgLogger.error(wfParams.get(name));
|
||||||
}
|
}
|
||||||
WorkflowPath path = fWorkflowService.startWorkflow(def.id, wfParams);
|
WorkflowPath path = fWorkflowService.startWorkflow(def.id, wfParams);
|
||||||
|
/*
|
||||||
if (path != null)
|
if (path != null)
|
||||||
{
|
{
|
||||||
fgLogger.error("Workflow path is not null.");
|
fgLogger.error("Workflow path is not null.");
|
||||||
@@ -119,6 +120,7 @@ public class StartAVMWorkflowAction extends ActionExecuterAbstractBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user