How to set a group of users and not a single user

cancel
Showing results for 
Search instead for 
Did you mean: 
matteo_zanardo
Active Member

How to set a group of users and not a single user

Hi, I need a big help.
Instead of assigning a task to a single user, how do I assign it to a group of users?
Also you can set that the first user of the group that carries out the task, inhibits other users of the group the ability to work on that task?

10 Replies
amruta_w
Senior Member

Re: How to set a group of users and not a single user

On user task, use property called assignment there you can assign it to group.

matteo_zanardo
Active Member

Re: How to set a group of users and not a single user

I already tried to do it, however when I go to test the process with the appropriate app gives me error

amruta_w
Senior Member

Re: How to set a group of users and not a single user

what error it gives?

matteo_zanardo
Active Member

Re: How to set a group of users and not a single user

I got an error when I go to press on the App Menu "Publish".
When I enter in the process all the individual users, it make me publish the app, and then I can test the process quietly.
But when I put "Candidate group", instead of single user and then I enter my group of users, when I publish the app I get a red banner with written "Could not publish app definition. Please Check the validity of the referenced process models "

What can I do?

amruta_w
Senior Member

Re: How to set a group of users and not a single user

I did not get any error, i just tested by creating the app and publishing to candidate group.

matteo_zanardo
Active Member

Re: How to set a group of users and not a single user

I do not understand why you give me this error..
Besides I selected my group of users, instead of the single user, without changing anything in the process

amruta_w
Senior Member

Re: How to set a group of users and not a single user

you need to create group, add users to it and assign task to that group.

matteo_zanardo
Active Member

Re: How to set a group of users and not a single user

I've already created a group of users, with 3 people inside, but it still not working

matteo_zanardo
Active Member

Re: How to set a group of users and not a single user

This is the error

09:15:43,835 [http-bio-8080-exec-263] ERROR org.activiti.engine.impl.interceptor.CommandContext  - Error while closing command context
org.activiti.bpmn.exceptions.XMLException: ParseError at [row,col]:[37,57]
Message: Attribute name "VerifiersGroup" associated with an element type "modeler:group-info-name-Primary" must be followed by the ' = ' character.
       at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:280)
       at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:148)
       at org.activiti.engine.impl.bpmn.deployer.ParsedDeploymentBuilder.createBpmnParseFromResource(ParsedDeploymentBuilder.java:96)
       at org.activiti.engine.impl.bpmn.deployer.ParsedDeploymentBuilder.build(ParsedDeploymentBuilder.java:55)
       at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:69)
       at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:60)
       at org.activiti.engine.impl.cmd.DeployCmd.executeDeploy(DeployCmd.java:110)
       at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:60)
       at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:40)
       at org.activiti.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:37)
       at org.activiti.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:78)
       at org.activiti.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:57)
       at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:42)
       at org.activiti.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:48)
       at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:63)
       at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)
       at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
       at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)
       at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:29)
       at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:44)
       at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:39)
       at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:86)
       at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:188)
       at org.activiti.app.service.runtime.DeploymentServiceImpl.updateAppDefinition(DeploymentServiceImpl.java:149)
       at sun.reflect.GeneratedMethodAccessor1135.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:606)
       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
       at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
       at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
       at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
       at com.sun.proxy.$Proxy74.updateAppDefinition(Unknown Source)
       at org.activiti.app.service.editor.AppDefinitionPublishService.publishAppDefinition(AppDefinitionPublishService.java:49)
       at org.activiti.app.service.editor.AppDefinitionPublishService$$FastClassBySpringCGLIB$$a6e73684.invoke(<generated>)
       at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
       at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
       at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
       at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
       at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
       at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653)
       at org.activiti.app.service.editor.AppDefinitionPublishService$$EnhancerBySpringCGLIB$$42118fbb.publishAppDefinition(<generated>)
       at org.activiti.app.service.editor.AppDefinitionImportService.publishAppDefinition(AppDefinitionImportService.java:149)
       at org.activiti.app.rest.editor.AppDefinitionResource.publishAppDefinition(AppDefinitionResource.java:111)
       at sun.reflect.GeneratedMethodAccessor1133.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:606)
       at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
       at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
       at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
       at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:776)
       at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:705)
       at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
       at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
       at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
       at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
       at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
       at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
       at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
       at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
       at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
       at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
       at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
       at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
       at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:149)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
       at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:168)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
       at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
       at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:205)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
       at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:120)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
       at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64)
       at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
       at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
       at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53)
       at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
       at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
       at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
       at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
       at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:498)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
       at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
       at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1139)
       at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
       at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
       at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
       at java.lang.Thread.run(Thread.java:745)
Caused by: org.xml.sax.SAXException: ParseError at [row,col]:[37,57]
Message: Attribute name "VerifiersGroup" associated with an element type "modeler:group-info-name-Primary" must be followed by the ' = ' character.
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[37,57]
Message: Attribute name "VerifiersGroup" associated with an element type "modeler:group-info-name-Primary" must be followed by the ' = ' character.
       at org.apache.xerces.jaxp.validation.StAXValidatorHelper.validate(Unknown Source)
       at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source)
       at javax.xml.validation.Validator.validate(Validator.java:124)
       at org.activiti.bpmn.converter.BpmnXMLConverter.validateModel(BpmnXMLConverter.java:221)
       at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:271)
       ... 118 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[37,57]
Message: Attribute name "VerifiersGroup" associated with an element type "modeler:group-info-name-Primary" must be followed by the ' = ' character.
       at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:598)
       at org.apache.xerces.jaxp.validation.StAXValidatorHelper$StreamHelper.validate(Unknown Source)
       ... 123 more