Microsoft Developer Network > 포럼 홈 > AppFabric Service and Workflow Management > Workflow Validation Failed in dublin VM from PDC
질문하기질문하기
 

답변됨Workflow Validation Failed in dublin VM from PDC

  • 2009년 3월 13일 금요일 오후 8: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

답변

  • 2009년 3월 19일 목요일 오후 10: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

모든 응답

  • 2009년 3월 19일 목요일 오후 4: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
  • 2009년 3월 19일 목요일 오후 7: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
  • 2009년 3월 19일 목요일 오후 7: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
  • 2009년 3월 19일 목요일 오후 9: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
  • 2009년 3월 19일 목요일 오후 10: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