I am using JAVA APIs to initiate a workflow and assign a task to a group called 'Analyst' which I have already created in the GUI.While doing so I am getting the following exception
Pooled actors value 'Analyst' is invalid
although I am able to assign a task to a single assignee.
When the workflow is kicked off,we are passing some parameters to the workflow node as
As per my guess this is where I am making a mistake.However I have no idea how to resolve it.Any suggestions will be greatly appreciated.Thanks in advance
I have installed Alfresco 2.9B version on Windows XP and using MySQL database.
I have attached the code below
/* * Copyright (C) 2005-2007 Alfresco Software Limited. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details.
* You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* As a special exception to the terms and conditions of version 2.0 of * the GPL, you may redistribute this Program in connection with Free/Libre * and Open Source Software ("FLOSS") applications as described in Alfresco's * FLOSS exception. You should have recieved a copy of the text describing * the FLOSS exception, and it is also available here: * http://www.alfresco.com/legal/licensing" */ package org.alfresco.sample;
/** * Simple client example demonstrating the use of the Alfresco Foundation Java APIs. * * The client creates a content node in the "Company Home" folder. The content * may be viewed and operated on within the Alfresco Web Client. Note: the web client * will need to be re-started after executing this sample to see the changes in * effect. * * This client demonstrates the "Embedded Repository" deployment option as described * in the Alfresco Respotiory Architecture docucment - * http://wiki.alfresco.com/wiki/Alfresco_Repository_Architecture */ public class sampleworkflow { static ServiceRegistry sr=null;
public static void main(String[] args) { // initialise app content ApplicationContext ctx = ApplicationContextHelper.getApplicationContext(); // get registry of services final ServiceRegistry serviceRegistry = (ServiceRegistry) ctx.getBean(ServiceRegistry.SERVICE_REGISTRY); sr=serviceRegistry; // use TransactionWork to wrap service calls in a user transaction TransactionService transactionService = serviceRegistry.getTransactionService(); RetryingTransactionCallback<Object> exampleWork = new RetryingTransactionCallback<Object>() { public Object execute() throws Exception { try{ doExample(serviceRegistry); } catch(Exception e){ System.out.println("e——–>"+e.getMessage()); System.exit(0); } return null; } }; transactionService.getRetryingTransactionHelper().doInTransaction(exampleWork); System.exit(0); }