Hi all, Can anyone explain the same thing at data model level in MDM. In the data model I have create date and update date. For both I gave current date as default value. But when I updating the record, create date is also changing to update date. Even I updated the record, the create date rule is also working. How can I get proper dates? Please help me out in this issue. Thanks in advance. Regards, Lalitha.
... View more

Hi all, Can anyone explain the same thing at data model level in MDM. In the data model I have create date and update date. For both I gave current date as default value. But when I updating the record, create date is also changing to update date. Even I updated the record, the create date rule is also working. How can I get proper dates? Please help me out in this issue. Thanks in advance. Regards, Lalitha.
... View more

Hi, It is better if you specify the version that you are working on. If the version that you are working is 5.0.1, then you can set a default value on any element of your data model. Right click on the element and select Set the Default Value Rule, in that you can select any string function for string type of element. In that you can select any function like uppercase() or lowercase(). You can specify the value as parameter. For example : fn:upper-case("new") In GUI, it displays as NEW for the element. Regards, Lalitha.
... View more

Hi All, I am new user of Drools tool. I have done a sample business Rule in Drools and tested. It is working fine in Drools. So I validated the package and imported .drl file into talend studio under Meta data (Embedded Rules). The code generated for the business rule is as follows: package modelonsales import salesmodel.Sales import java.util.ArrayList import java.util.HashMap import java.lang.Integer global ArrayList list global HashMap globalMap rule "SalesBR" dialect "mvel" when exists Sales( sales >= "100" ) then Sales fact0 = new Sales(); fact0.setName( "Discount" ); fact0.setSales( -10 ); insert(fact0 ); end When I executing the job it is giving errors as follows: Starting job DroolsJob at 14:14 21/11/2011. connecting to socket on port 3678 connected ^ at org.mvel2.compiler.AbstractParser.procTypedNode(AbstractParser.java:1278) at org.mvel2.compiler.AbstractParser.nextToken(AbstractParser.java:712) at org.mvel2.compiler.ExpressionCompiler._compile(ExpressionCompiler.java:106) at org.mvel2.compiler.ExpressionCompiler.compile(ExpressionCompiler.java:55) at org.drools.rule.builder.dialect.mvel.MVELExprAnalyzer.analyzeExpression(MVELExprAnalyzer.java:86) at org.drools.rule.builder.dialect.mvel.MVELDialect.analyzeBlock(MVELDialect.java:492) at org.drools.rule.builder.dialect.mvel.MVELConsequenceBuilder.build(MVELConsequenceBuilder.java:84) at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:86) at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:1159) at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:649) at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:290) at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:488) at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:25) at project1.droolsjob_0_1.DroolsJob$1KnowledgeBase_tRules_2.readKnowledgeBaseDRL(DroolsJob.java:595) at project1.droolsjob_0_1.DroolsJob$1KnowledgeBase_tRules_2.readKnowledgeBase(DroolsJob.java:584) at project1.droolsjob_0_1.DroolsJob.tFileInputExcel_2Process(DroolsJob.java:648) at project1.droolsjob_0_1.DroolsJob.runJobInTOS(DroolsJob.java:1247) at project1.droolsjob_0_1.DroolsJob.main(DroolsJob.java:1121) Unable to resolve ObjectType 'Sales' : Unable to build expression for 'consequence': unknown class or illegal statement: Sales 'Sales fact0 = new Sales(); fact0.setName( "Discount" ); fact0.setSales( -10 ); insert(fact0 ); ' : Error importing : 'salesmodel.Sales' Exception in component tRules_2 java.lang.IllegalArgumentException: Could not parse knowledge. at project1.droolsjob_0_1.DroolsJob$1KnowledgeBase_tRules_2.readKnowledgeBaseDRL(DroolsJob.java:604) at project1.droolsjob_0_1.DroolsJob$1KnowledgeBase_tRules_2.readKnowledgeBase(DroolsJob.java:584) at project1.droolsjob_0_1.DroolsJob.tFileInputExcel_2Process(DroolsJob.java:648) at project1.droolsjob_0_1.DroolsJob.runJobInTOS(DroolsJob.java:1247) at project1.droolsjob_0_1.DroolsJob.main(DroolsJob.java:1121) disconnected Job DroolsJob ended at 14:14 21/11/2011. I have attached the screen shots along with this topic. Please find the attachments. Please help me out on this issue. Thanks and Regards, Lalitha.
... View more

Hi, Thanks for your reply.... Actually we are using a separate Bonita software and the version is 5.4.1. And in talend the plug-ins we have Bonita of version 5.2.3. We are getting the code on Bonita of version 5.4.1. We will checkout the APIs that you provided in the links above. Thanks and Regards, Lalitha.
... View more

Hi Ladislav, It is on developer's work station. Actually the task is we have 8 roles. When the users registered through the administrator, they need to give details like identifier, password,first name, last name, email id and roles assigned. In my workflow I need to send email for every step when the workflow is in ready state in that particular step. For this I added email connector. In 'to' attribute of email connector I don't want to hard code the email id's. I would like to retrieve the email Id given by the users at registration time. We can get the username by using 'loggedUser' variable. But I need that user's email Id. As I mentioned in my previous post I implemented the code in Bonita. It is working well on Bonita but I want it on Talend MDM. Please help me.... Thanks and Regards, Lalitha.
... View more

Hi all, I'm working on Talend MDM. In my workflow I have to send email to the logged person. I added email connector (on Ready status) to one step, activity type is Human. Whenever the user got the workflow in ready state an email should sent to his/her email id. As Bonita Engine included in Talend MDM, I tried this task on Bonita by giving the following code: import org.ow2.bonita.util.AccessorUtil String to=AccessorUtil.getIdentityAPI().getUser(loggedUser).getEmail() return to This code successfully executed on Bonita but not on Talend MDM. Is there any other way to get this task. Please help me...... Thanks and regards, Lalitha.
... View more