The rst step the workfl saves into the dnrequest table the database
Persistence and Human Interactions❘535
status
},
Activities =
{
new CreateDomainNameRequest
{
DomainName = new InArgument < string > (ctx = > DomainName.Get(ctx)), Request = new OutArgument < DNRequest > (ctx = > request.Get(ctx)) },
new InvokeMethod
{
TargetType = typeof (RequestClientProxy),
MethodName = “AddDNRequestToList”,
Parameters =
{
new InArgument < DNRequest > (ctx = > request.Get(ctx))
}
},
new WaitForApproval
{
BookmarkName = “ApproveRequest”,
Status = new OutArgument < string > (ctx = > status.Get(ctx)) },
new InvokeMethod
{
TargetType = typeof (RequestClientProxy),
MethodName = “UpdateDNRequest”,
Parameters =
{
new InArgument < int > (ctx = > request.Get(ctx).RequestID), new InArgument < string > (ctx = > status.Get(ctx))
}
}
}
};
}
}
}
|
---|
4. |
|
---|
Preparing the Workfl ow Database
In addition to the tables the script created, the
FIGURE 11 - 20: The Create New SQL Server Database dialog
using System.Activities;
using DomainNameDAL;namespace RequestClient.Activities