Workflow Validation Failed in dublin VM from PDC

Заблокировано Workflow Validation Failed in dublin VM from PDC

  • 13 марта 2009 г. 20:26
     
     
    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

Все ответы

  • 19 марта 2009 г. 16:20
     
     
    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
  • 19 марта 2009 г. 19:04
     
     
     

    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
  • 19 марта 2009 г. 19:21
     
     

    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
  • 19 марта 2009 г. 21:59
     
     
    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
  • 19 марта 2009 г. 22:08
     
     Отвечено
    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
    • Помечено в качестве ответа edhickey 26 марта 2009 г. 16:48
    •