JBoss Community

Re: How to update the process variable instances values dynamically in audit logs.

created by Lingaiah Sundari in jBPM - View the full discussion

Hi Maciej Swiderski ,

 

    Thank you very much.

 

   Code :  used MVEL   - >Updated param  customerProfile.cardIssueStatus  , Customet profile object is added to Map params while starting the process.

  

System.out.println(

" In pre Processor : customerProfile.appliedLimit -> " + customerProfile.appliedLimit );

 

 

 

 

 

 

 

 

 

if

 

(customerProfile.appliedLimit > 30000) {

customerProfile.accessCreditCardService =

true

;

}

else

{

customerProfile.cardIssueStatus =

" Credit Card Issue process is suspended due to applied limit is < 30K , Logged the status and sent eMail "

;

}

 

System.out.println(

" In pre Processor : customerProfile.accessCreditCardService -> "

+ customerProfile.accessCreditCardService );

System.out.println(

" In pre Processor : customerProfile.cardIssueStatus -> "

+ customerProfile.cardIssueStatus );

System.out.println(

"\n"

);

 

  

   I am attaching the source code while editing the discussion.

 

 

-Regards,

Lingaiah.S



Reply to this message by going to Community

Start a new discussion in jBPM at Community