Formular una preguntaFormular una pregunta
 

RespondidaWorkflow Validation Failed in dublin VM from PDC

  • viernes, 13 de marzo de 2009 20:26Dennes Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    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

Respuestas

  • jueves, 19 de marzo de 2009 22:08Kavita Kamani - MSFTMSFTMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     Respondida
    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

Todas las respuestas

  • jueves, 19 de marzo de 2009 16:20Ford McKinstryMSFT, ModeradorMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    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
  • jueves, 19 de marzo de 2009 19:04Kavita Kamani - MSFTMSFTMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
     

    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
  • jueves, 19 de marzo de 2009 19:21Dennes Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     

    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
  • jueves, 19 de marzo de 2009 21:59Kavita Kamani - MSFTMSFTMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    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
  • jueves, 19 de marzo de 2009 22:08Kavita Kamani - MSFTMSFTMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     Respondida
    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