Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Invoke long process in flex application

Avatar

Former Community Member

There is a long process I created in workbench to save a new member.

I following a guide here http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/common/html/wwhelp....

There were no errors showed up by calling the process in flex application, but the process wasn't called(by use recording and play process).

btw, the process itself works fine if i invoke the process in workbench.  following are my codes:

public function CreateNewMemberManager(memberId:String, firstName:String, lastName:String, dob:Date)

{

addNewMember.channelSet=ChannelSetHelper.getRemoteObjectInstance().channelSet;

addNewMember.addEventListener(ResultEvent.RESULT, resultHandle);

this.firstName = firstName;

this.lastName = lastName;

this.memberId = memberId;

this.dob = dob;

}

//This method invokes the "add new member" process

public function executeInvokeProcess():void

{

//Create an Object to store the input value for the EncryptDocument process    

var params:Object=new Object();

params[FIRST_NAME]= firstName;

params[LAST_NAME]= lastName;

params[MEMBER_ID]= memberId;

params[DOB]= dob;

var token:AsyncToken = addNewMember.invoke_Async(params);

}

// This method handles a successful conversion invocation

private function resultHandle(event:ResultEvent):void{

Alert.show("Member: "+memberId+" is created!");

}

any idea?

3 Replies

Avatar

Former Community Member

by the way, If i set my process to be short-lived process. and change

var token:AsyncToken = addNewMember.invoke_Async(params); to

var token:AsyncToken = addNewMember.invoke(params);

Everything works fine.

Avatar

Former Community Member

nvm, the codes work fine. the user i logged in to flex application didn't have permission to call process. I will open another thread for this permission problem.

Avatar

Employee

Thanks for letting us know... I was starting to build a sample