I'm a little confused. If you say you only use Task Nodes, then why would you be worried about signalling a "state or other node" ?
If you signal the tokens, the tasks will never end. It's technically ok if they are open, though it might be confusing.
Why not just .end() the task, since you say you're only using task nodes.
thanxs for your quick answer.
Now i'm only using task, but i don't know what could happen tomorrow. I want to think that my process could be a group of task , nodes, or whatever.
Look, i´m building a tier who comunicate with jbpm. So i want to call a signal method to my tier and this method calls a signal to jbpm.
i'm not clear enough , not?
Your tier that calls jBPM, could just be a little smarter.
It could detect if it is a task node or a state, and then end/signal appropriately. Your tier should know if it is a task node or not, and follow up properly.