So, after upgrading to K2 Blackpearl 4.6.6, I open one of my SmartObject's "Read" methods. It's a simple read method which utilizes the Service Object's SQL provider.
As I attempt to move off the "Method Details" Wizard Page (Read type method), I receive an exception "Persistable object is marked as a non public object".
Details:
SourceCode.Workflow.Design
at SourceCode.Workflow.Design.ServiceMethodFieldPart.GetServiceInstance()
at SourceCode.Workflow.Design.ServiceMethodFieldPart.get_Text()
at SourceCode.Workflow.WizardFramework.Controls.K2TextBoxBase.RenderViewFromK2Field()
at SourceCode.Workflow.WizardFramework.Controls.K2TextBoxBase.set_K2Field(K2Field value)
at SourceCode.Workflow.WizardFramework.Controls.K2TextBox.set_K2Field(K2Field value)
at SourceCode.SmartObjects.Wizards.Methods.Pages.ServiceMethodMapping.OnActivate()
at SourceCode.Workflow.WizardFramework.WizardPage.SourceCode.Framework.IWizardPage.Activate()
at SourceCode.Workflow.WizardFramework.PropertyWizard.ActivateCurrentPage()
at SourceCode.Workflow.WizardFramework.PropertyWizard.OnNavigateToPage(WizardPage destinationPage, Direction direction)
at SourceCode.Workflow.WizardFramework.PropertyWizard.set_CurrentPage(WizardPage value)
at SourceCode.Workflow.WizardFramework.PropertyWizard.OnNext(IWizardHostService host)
at SourceCode.Workflow.WizardFramework.PropertyWizard.SourceCode.Framework.IPropertyWizard.Next(IWizardHostService host)
at SourceCode.Workflow.DesignerFramework.WizardHost.ShowNextPage()
SourceCode.Workflow.Design
at SourceCode.Workflow.Design.ServiceMethodFieldPart.GetServiceInstance()
at SourceCode.Workflow.Design.ServiceMethodFieldPart.get_Text()
at SourceCode.Workflow.WizardFramework.Controls.K2TextBoxBase.RenderViewFromK2Field()
at SourceCode.Workflow.WizardFramework.Controls.K2TextBoxBase.set_K2Field(K2Field value)
at SourceCode.Workflow.WizardFramework.Controls.K2TextBox.set_K2Field(K2Field value)
at SourceCode.SmartObjects.Wizards.Methods.Pages.ServiceMethodMapping.OnActivate()
at SourceCode.Workflow.WizardFramework.WizardPage.SourceCode.Framework.IWizardPage.Activate()
at SourceCode.Workflow.WizardFramework.PropertyWizard.ActivateCurrentPage()
at SourceCode.Workflow.WizardFramework.PropertyWizard.OnNavigateToPage(WizardPage destinationPage, Direction direction)
at SourceCode.Workflow.WizardFramework.PropertyWizard.set_CurrentPage(WizardPage value)
at SourceCode.Workflow.WizardFramework.PropertyWizard.OnNext(IWizardHostService host)
at SourceCode.Workflow.WizardFramework.PropertyWizard.SourceCode.Framework.IPropertyWizard.Next(IWizardHostService host)
at SourceCode.Workflow.DesignerFramework.WizardHost.ShowNextPage()
So I attempt to add an additional method instead:
Call it "ReadNew", and select the "Read" type, I am able to move to the next wizard page, but whatever I do, I cannot drop the "Read" service method. No exception, just does not add it from the ServiceObject server
Nevermind, I'll test the currently deployed SmartObject and if it works, download the SODX:
Well, the object's methods work fine, but the refresh from the server doesn't work either. Same problem as before.
I guess I'm going to have to recreate this Smart Object from scratch and waste more time..
Oh, and it seems that the other SmartObjects in my solution work fine though.