Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

Inhalt
maxLevel2

 

Allgemein

Regeln des Typs "Kommunikation" können  Businessobjekte zugewiesen werden und müssen das Interface "CommunicationRule" implementieren.

Innerhalb des Baums mit der Regelbibliothek werden sie dem Knoten "Kommunikation" zugeschrieben.


Struktur


Codeblock
package de.projekt; 

import org.nuclos.api.rule.CommunicationRule; 
import org.nuclos.api.context.communication.CommunicationContext; 
import org.nuclos.api.context.communication.PhoneCallNotificationContext; 
import org.nuclos.api.annotation.Rule; 
import org.nuclos.api.exception.BusinessException; 

/** @name        
  * @description 
  * @usage       
  * @change      
*/
@Rule(name="ComPhone", description="ComPhone")
public class ComPhone implements CommunicationRule<PhoneCallNotificationContext> {

	public Class<PhoneCallNotificationContext> communicationContextClass() {
		return PhoneCallNotificationContext.class;
	}
	public void communicate(PhoneCallNotificationContext context)  throws BusinessException { 
	}
}


Zuweisung


Klassen des Typs "Kommunikation" können nur Businessobjekte zugewiesen werden. Nach der Verknüpfung erscheint die Klasse nach Auswahl des Businessobjekts und des Typs im Zuweisungsfenster und bietet folgende weitere Einstellungsmöglichkeiten:

  • Ausführen bei einem bestimmten Status
  • Ausführen bei einer bestimmten Aktion