using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Linq;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using System.IO;
namespace MSFactoryService
{
public sealed partial class Workflow1 : SequentialWorkflowActivity
{
public Workflow1()
{
InitializeComponent();
}
private String returnValue;
private Int32 inputValue;
public Int32 InputValue
{
get{ return inputValue; }
set{ inputValue = value; }
}
public string ReturnValue
{
get{ return returnValue; }
set{ returnValue = value; }
}
public String paramProductName = default(System.String);
public DateTime paramReturnValue = default(System.DateTime);
private void codeActivity1_ExecuteCode(object sender, EventArgs e)
{
using (FileStream fs = File.Create(Path.Combine(@"c:\tmp", paramProductName + "_ordered.txt")))
{
// 何も処理しない
}
}
private void codeActivity2_ExecuteCode(object sender, EventArgs e)
{
using (FileStream fs = File.Create(Path.Combine(@"c:\tmp", paramProductName + "_created.txt")))
{
// 何も処理しない
}
}
private void codeActivity3_ExecuteCode(object sender, EventArgs e)
{
using (FileStream fs = File.Create(Path.Combine(@"c:\tmp", paramProductName + "_delivered.txt")))
{
// 何も処理しない
}
paramReturnValue = DateTime.Now;
}
}
}