Note that there are some explanatory texts on larger screens.

plurals
  1. POcapturing webform event for workflow on asp.net site
    primarykey
    data
    text
    <p>The basic idea is that I have a website and a workflow. I need to capture button clicks from aspx pages in my workflow. </p> <p>I have a solution with a worflow project and a website project, and the web.config and global.asax have been set up to work with WF. Persistence services are also set up.</p> <p>I have created a StateMachine workflow. There are several states (StateActivity) containing EventDrivenActivity instances, inside of which are HandleExternalEventActivity instances. To set up the latter correctly so the application could compile, I created an interface decorated with the ExternalDataExchange attribute, and exposing the necessary events. I then created a class that implemented this interface.</p> <p>That's as far as I got. Now I need to connect the class to my aspx page; events on the page need to trigger the events in the class.</p> <p>My code looks something like this:</p> <pre><code>&lt;ExternalDataExchange()&gt; _ Public Interface ICatWorkflow Property RequestId() As Guid ... Sub requestInfoEmail() ... Event onReception(ByVal sender As Object, ByVal e As ExternalDataEventArgs) End Interface Class MyObject Implements ICatWorkflow Public Property RequestId() As Guid Implements ICatWorkflow.RequestId ... End Property Public Sub requestInfoEmail() Implements ICatWorkflow.onReception ... End Sub Event onReception(ByVal sender As Object, ByVal e As ExternalDataEventArgs) end class </code></pre> <p>On my form.aspx âge, there is a button, and on form.aspx.vb page, there is a corresponding event handler:</p> <pre><code>Protected Sub btnReception_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnReception.Click ... End Sub </code></pre> <p>Where to go from here?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload