Hi,
as you have suggested, to send message i create a groovy connector with this code:
//import com.company.model.AdtA04DAO;
import com.company.model.AdtA04;
import org.bonitasoft.engine.api.APIAccessor;
import org.bonitasoft.engine.api.ProcessAPI;
import org.bonitasoft.engine.api.ProcessRuntimeAPI;
import org.bonitasoft.engine.expression.ExpressionBuilder;
import org.bonitasoft.engine.expression.Expression;
//import java.util.logging.Logger;
Expression targetProcess = new ExpressionBuilder().createConstantStringExpression("P2");
Expression targetFlowNode = new ExpressionBuilder().createConstantStringExpression("Démarrer3");
ProcessAPI processAPI = apiAccessor.getProcessAPI();
Map mapA = new HashMap();
Expression messageContentKey = new ExpressionBuilder().createConstantStringExpression("key");
Expression messageContentValue = new ExpressionBuilder().createConstantStringExpression("AdtA04DAO");
mapA.put(messageContentKey, messageContentValue)
processAPI.sendMessage("adt_A04", targetProcess, targetFlowNode,mapA);
but i don't know how to received this message by P2?