Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Invoke long process in flex application

Avatar

Level 2

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?

0 Replies

Avatar

Level 2

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

Level 2

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