Hi, Wie kann ich einer Funktion mehrere Parameter übergeben.
Denn anscheinend geht @InputVars nur einnmal..
Ich habs schon mit List versucht, allerdings scheint er da den Wert nur string zu übergeben und nicht als Objekt.
Denn eigentlich hätte ich gern 3 Übergabe paramater.
einen String ein Objekt, einen String.
Die Liste ist ein Objekt und zwei Strings.
Allerings, laut Ausgabe könnte man das Ganze wieder per "," separieren, aber ist dann ist es immer noch ein String anstatt ein Objekt.
Ausgabe unter dem Code
Code
package hackernet.module.demo;
import org.apache.commons.logging.Log;
import de.starface.ch.processing.bo.api.types.Call;
import de.starface.ch.processing.model.data.Phone;
import de.starface.ch.processing.model.enums.CallState;
import de.vertico.starface.module.core.model.Variable;
import de.vertico.starface.module.core.model.VariableType;
import de.vertico.starface.module.core.model.Visibility;
import de.vertico.starface.module.core.runtime.IAGIJavaExecutable;
import de.vertico.starface.module.core.runtime.IAGIRuntimeEnvironment;
import de.vertico.starface.module.core.runtime.IBaseExecutable;
import de.vertico.starface.module.core.runtime.IRuntimeEnvironment;
import de.vertico.starface.module.core.runtime.annotations.Function;
import de.vertico.starface.module.core.runtime.annotations.InputVar;
import de.vertico.starface.module.core.runtime.annotations.OutputVar;
@Function(visibility=Visibility.Private, rookieFunction=false, description="Default")
public class Demo implements IAGIJavaExecutable // IBaseExecutable
{
//##########################################################################################
@InputVar(label="DEFAULT", description="DEFAULT",type=VariableType.LIST)
public Object INPUT_DEFAULT="";
@OutputVar(label="DEFAULT", description="DEFAULT",type=VariableType.OBJECT)
public Object OUTPUT_DEFAULT="";
//##########################################################################################
//###################
@Override
//public void execute(IRuntimeEnvironment context) throws Exception
public void execute(IAGIRuntimeEnvironment context) throws Exception
{
context.getLog().info(INPUT_DEFAULT);
}
*/
//log.debug(INPUT_DEFAULT);
OUTPUT_DEFAULT = "10";
}//END OF EXECUTION
}
Der output sieht so aus.
das zweite element ist : sdsdsd
und das dritte : 55555
Aber wie gesagt das Objekt ist ein String und daher leider nicht zu verwenden
[CODE]
[2018-11-05 10:48:28,836] INFO [PojoCall [callId=b96d4e66-b97d-453e-bda2-507c7ea86cfc, callType=MASTER, callerParticipationInfo=98 : T�r 98 : T�r tuer accountId:null type:UNKNOWN module:false, calledParticipationInfo=98 : Türklingelunten 98 : Türklingelunten 98 accountId:1003 type:GROUP module:false, callState=NEW, caller=PojoCallLeg [callId=b96d4e66-b97d-453e-bda2-507c7ea86cfc, callLegId=db563ea8-801e-4e78-a551-35b0ab2f2f14, linkedLegWithoutLocal=null, linkedLocalLegId=null, linkedLegId=null, conferenceBridgeId=null, confbridgeAdmin=false, confbridgeListen=false, confbridgeMute=false, confbridgeTalking=false, confbridgeWantToTalk=false, confbridgeWantToTalkPosition=0, consultationChannelId=null, consultationRoomId=null, callState=NEW, callLegState=NORMAL, endpointType=CHANNEL, peerType=PHONE, lineType=UNKNOWN, peerName=SIP/tuer, lineId=0, lineName=null, parkedBy=null, doorlineCamUrl=null, doorlineDtmfCode=null, doorlineImageProviderId=0, channelName=SIP/tuer-00000029, channelUniqueId=1541411308.41, sipCallId=null, monitor=false, account=null, participant=PojoParticipant [accountId=0, participantType=UNKNOWN, avatarHash=null, avatarUrl=null, number=null, name=null, language=null, primaryExternalNumber=null, primaryInternalNumber=null, displayNumber=null, numbers=[], callerId=CallerId [called=null, caller=CallerIdParticipant [firstname=Anonymous, lastname=, number=, type=UNKNOWN, additionalParams={}], forwarder=null, moduleCall=false, externalPrefix=null, phoneCallerIdName=, phoneCallerIdNumber=, uciCallerIdName=, uciCallerIdNumber=], conferenceAdmin=false, groupMemberShipAccounts=[], assignedPhoneNamesWithStateAvail=[], assignedIPhoneClientsWithStateUnavail=[], accountState=UNAVAIL, musicOnHoldClassName=null, jabberId=, conferenceParticipantId=-1], inCallRouting=true, caller=true, createdTimestamp=Mon Nov 05 10:48:28 CET 2018, connectedTimestamp=null, pstnLineRequested=false, fromDialContext=false, federationCallInfo=null], called=[], dialedPhoneNumber=98, firstExternDialedPhoneNumber=null, forwarderInfo=null, ccbsCanceled=false, ccbsStarted=false, ignoreModuleInstanceIds=[]], sdsdsd, 55555]
Alles anzeigen
Mal wieder lange rede kurzer sinn, möchte einfach mehrere Variablen übergeben können
Jemand ne Idee?
Lg Bonkersdeluxe