jboss-user
[Arriba] [Todas las Listas]

[jboss-Usuario] [jBPM] - Re: obsoleto id

To: User development <jboss-user@xxxxxxxxxxxxxxx>
Subject: [jboss-Usuario] [jBPM] - Re: obsoleto id
From: Francesco Pietrobelli <do-not-reply@xxxxxxxxx>
Date: Thu, 08 Sep 2011 04:07:35 -0400
Auto-submitted: yes
Delivery-date: Thu, 08 Sep 2011 04:08:48 -0400
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <2-625248-3-89918-1315393694060-2-625316-3-89918-1315409755032.jivesbs.jivemailuser@http://community.jboss.org>
List-archive: <http://lists.jboss.org/pipermail/jboss-user>
List-help: <mailto:jboss-user-request@lists.jboss.org?subject=help>
List-id: The JBoss User main mailing list <jboss-user.lists.jboss.org>
List-post: <mailto:jboss-user@lists.jboss.org>
List-subscribe: <https://lists.jboss.org/mailman/listinfo/jboss-user>, <mailto:jboss-user-request@lists.jboss.org?subject=subscribe>
List-unsubscribe: <https://lists.jboss.org/mailman/listinfo/jboss-user>, <mailto:jboss-user-request@lists.jboss.org?subject=unsubscribe>
References: <2-625248-3-89918-1315393694060.jivesbs.jivemailuser@http://community.jboss.org> <2-625248-3-89918-1315393694060-2-625274-3-83189-1315400179731.jivesbs.jivemailuser@http://community.jboss.org> <2-625248-3-89918-1315393694060-2-625316-3-89918-1315409755032.jivesbs.jivemailuser@http://community.jboss.org>
Reply-to: The JBoss User main mailing list <jboss-user@xxxxxxxxxxxxxxx>
Sender: jboss-user-bounces@xxxxxxxxxxxxxxx
Francesco *Pietrobelli [*http://comunidad.*jboss.*org/Personas/*francesco.*pietrobelli] Creó la discusión

"*Re: obsoleto *id"

para ver la discusión, visita: *http://comunidad.*jboss.*org/Mensaje/625434#625434

--------------------------------------------------------------
*yep... Esto es muy extraño!!!

Te es seguro para utilizar *org.*jbpm.*workflow.Caso.*WorkflowProcessInstance? Porque el código para  *HumanTaskHandler que *i'de hecho estoy utilizando con *jBPM5.1 es:


público *void *executeWorkItem(*WorkItem elemento, *WorkItemManager director)
        #unknown{^*WorkflowProcessInstance *currentProcess = (*WorkflowProcessInstance) *ksession
                .*getProcessInstance(Elemento.*getProcessInstanceId());
        Si (*currentProcess == *null)
            #unknown{^*log.Error("no Puede encontrar pariente de caso de proceso actual a + " elemento);
            director.*abortWorkItem(Elemento.*getId());
            Regreso;
        }
 
        *HumanTaskNodeInstance *currentNode = (*HumanTaskNodeInstance) *JbpmUtility
                .*findNodeInstance(Elemento.*getId(), *currentProcess);
        si (*currentNode == *null)
            #unknown{^*log.Error("no Puede encontrar pariente de caso de nodo actual a + " elemento);
            director.*abortWorkItem(Elemento.*getId());
            Regreso;
        }
     ...     
     ...
}
--------------------------------------------------------------

Respuesta a este mensaje por ir a Comunidad
[*http://comunidad.*jboss.*org/Mensaje/625434#625434]

Empieza una discusión nueva en *jBPM en Comunidad
[*http://comunidad.*jboss.*org/Escoge-contenedor!Entrada.*jspa?*contentType=1&*containerType=14&contenedor=2034]

Francesco Pietrobelli [http://community.jboss.org/people/francesco.pietrobelli] created the discussion

"Re: obsolete id"

To view the discussion, visit: http://community.jboss.org/message/625434#625434

--------------------------------------------------------------
yep... this is very strange!!!

are you sure to use org.jbpm.workflow.instance.WorkflowProcessInstance? because the code for  HumanTaskHandler that i'am actually using with jBPM5.1 is:


public void executeWorkItem(WorkItem item, WorkItemManager manager) {
        WorkflowProcessInstance currentProcess = (WorkflowProcessInstance) ksession
                .getProcessInstance(item.getProcessInstanceId());
        if (currentProcess == null) {
            log.error("Can't find current process instance relative to " + item);
            manager.abortWorkItem(item.getId());
            return;
        }
 
        HumanTaskNodeInstance currentNode = (HumanTaskNodeInstance) JbpmUtility
                .findNodeInstance(item.getId(), currentProcess);
        if (currentNode == null) {
            log.error("Can't find current node instance relative to " + item);
            manager.abortWorkItem(item.getId());
            return;
        }
     ...     
     ...
}
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/625434#625434]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
*jboss-Usuario *mailing lista
*jboss-user@xxxxxxxxxxxxxxx
*https://listas.*jboss.*org/*mailman/*listinfo/*jboss-Usuario
_______________________________________________
jboss-user mailing list
jboss-user@xxxxxxxxxxxxxxx
https://lists.jboss.org/mailman/listinfo/jboss-user
<Anterior por Tema] Tema Actual [Siguiente por Tema>