Britt Park adb1b17c1e 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
2006-09-20 22:01:37 +00:00

69 lines
2.1 KiB
Java

/*
* 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);
}
}