mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Here's a skeletal workflow for the Gartner demo. Doesn't do anything besides
printing a log message and showing up appropriately in task lists. The task screens aren't quite delectable but they show up. Fixed a misplaced store level property and added a new one ".website.name" to user sandbox stores so that the corresponding staging sandbox can be determined efficiently from a user sandbox. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3870 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
68
source/java/org/alfresco/repo/avm/wf/AVMSubmitHandler.java
Normal file
68
source/java/org/alfresco/repo/avm/wf/AVMSubmitHandler.java
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright (C) 2006 Alfresco, Inc.
|
||||
*
|
||||
* Licensed under the Mozilla Public License version 1.1
|
||||
* with a permitted attribution clause. You may obtain a
|
||||
* copy of the License at
|
||||
*
|
||||
* http://www.alfresco.org/legal/license.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
* either express or implied. See the License for the specific
|
||||
* language governing permissions and limitations under the
|
||||
* License.
|
||||
*/
|
||||
|
||||
package org.alfresco.repo.avm.wf;
|
||||
|
||||
import org.alfresco.repo.workflow.jbpm.JBPMSpringActionHandler;
|
||||
import org.alfresco.service.cmr.avm.AVMService;
|
||||
import org.alfresco.service.cmr.avmsync.AVMSyncService;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.jbpm.graph.exe.ExecutionContext;
|
||||
import org.springframework.beans.factory.BeanFactory;
|
||||
|
||||
/**
|
||||
* Performs a 'submit' operation: update from one sandbox layer to
|
||||
* its corresponding staging sandbox.
|
||||
* @author britt
|
||||
*/
|
||||
public class AVMSubmitHandler extends JBPMSpringActionHandler
|
||||
{
|
||||
private static final long serialVersionUID = 7561005904505181493L;
|
||||
|
||||
private static Logger fgLogger = Logger.getLogger(AVMSubmitHandler.class);
|
||||
|
||||
/**
|
||||
* The AVMSyncService.
|
||||
*/
|
||||
private AVMSyncService fAVMSyncService;
|
||||
|
||||
/**
|
||||
* The AVMService.
|
||||
*/
|
||||
private AVMService fAVMService;
|
||||
|
||||
/**
|
||||
* Set any bean references necessary.
|
||||
* @param factory The BeanFactory from which to get beans.
|
||||
*/
|
||||
@Override
|
||||
protected void initialiseHandler(BeanFactory factory)
|
||||
{
|
||||
fAVMSyncService = (AVMSyncService)factory.getBean("AVMSyncService");
|
||||
fAVMService = (AVMService)factory.getBean("AVMService");
|
||||
}
|
||||
|
||||
/**
|
||||
* Do the actual submit work.
|
||||
* @param executionContext The jBPM context.
|
||||
*/
|
||||
public void execute(ExecutionContext executionContext) throws Exception
|
||||
{
|
||||
String avmSource = (String)executionContext.getContextInstance().getVariable("sourcePath");
|
||||
fgLogger.error("Would be submittting: " + avmSource);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user