MSDN > 論壇首頁 > AppFabric Service and Workflow Management > Workflow Validation Failed in dublin VM from PDC
發問發問
 

已答覆Workflow Validation Failed in dublin VM from PDC

  • Friday, 13 March, 2009 20:26Dennes 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi,

    Today I started to use dublin VM from PDC, creating some small workflows. In the first try, I received this error when I run the workflow (wcf + sequential workflow). The WCF host show this message "workflow validation failed".

    After some search on web, I discovered the problem is the declarative rule condition. So, when I change the declarative rule condition to code condition it works fine, but with declarative rule condition it doesn't.

    The workflow is very simple, an input number, "if" activity and an output calculation result. Using code condition works fine, declarative rule condition doesn't.

    What am I doing wrong ? How to make declarative conditions work in dublin VM ?

    (the same workflow constructed in VS 2008 works well with declarative conditions, using the same steps to build the workflow).

    Thanks !

    []'s

    Dennes
    Dennes - Se resolveu, classifique a mensagem, por favor - [http://www.bufaloinfo.com.br] NOVO DVD Segurança no ASP.NET : http://www.bufaloinfo.com.br/LearingSeriesSegurancaASPNET2.asp

解答

  • Thursday, 19 March, 2009 22:08Kavita Kamani - MSFTMSFT使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    I have just been told there was a known issue on the PDC builds with 3.x Rules. So if you have a PDC build, then this is a known issue, and we plan to have it fixed in the Beta1 build.
    Thanks
    Kavita
    Program Manager, Connected Framework: http://blogs.msdn.com/rulesteam

所有回覆

  • Thursday, 19 March, 2009 16:20Ford McKinstryMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Dennes,

    It sounds like you might be using WF 3.0 or WF 3.5 and it sounds like a Workflow Rules specific issue.  I've asked someone to take a look and get back to you.

    Thanks,
    Ford McKinstry
    Ford McKinstry
  • Thursday, 19 March, 2009 19:04Kavita Kamani - MSFTMSFT使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
     

    What does the DeclarativeRuleCondition looks like? Validation error means you are probably trying to compare a field/property with a type that is not compatible.

     

    This works on VS 2008, so there’s no bug here that I am aware of.

    Can you send me your .rules file from the project and the copy of the workflow code on which the fields/properties are defined (that are being used inside the declarative rule condition). If you can paste your code condition too, that’d be great.

    Kavita 


    Program Manager, Connected Framework: http://blogs.msdn.com/rulesteam
  • Thursday, 19 March, 2009 19:21Dennes 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    Hi,

    It's a too simple condition that I used to test the workflow :

    this.InputValue < 500

    The same declarative condition works in VS 2008 but doesn't works in VS 2010 (dublin VM). But if I change declarative rule condition to code condition it works.

    The code condition seems like this :

    e.Result= (this.InputValue < 500);


    If it's really needed, I can send the project to you, it was just a test project receiving a number and doing different calculations if the number is greater than 500 or not. What's your e-mail to send the project ?

    Thank you !!

    []'s

    Dennes


    Dennes - Se resolveu, classifique a mensagem, por favor - [http://www.bufaloinfo.com.br] NOVO DVD Segurança no ASP.NET : http://www.bufaloinfo.com.br/LearingSeriesSegurancaASPNET2.asp
  • Thursday, 19 March, 2009 21:59Kavita Kamani - MSFTMSFT使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    kavita dot kamani at microsoft dot com.
    please include the build of VS 2010 you have.
    Program Manager, Connected Framework: http://blogs.msdn.com/rulesteam
  • Thursday, 19 March, 2009 22:08Kavita Kamani - MSFTMSFT使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    I have just been told there was a known issue on the PDC builds with 3.x Rules. So if you have a PDC build, then this is a known issue, and we plan to have it fixed in the Beta1 build.
    Thanks
    Kavita
    Program Manager, Connected Framework: http://blogs.msdn.com/rulesteam