예제 #1
0
        public CompensationParticipant(Variable <long> compensationId)
            : base()
        {
            this.compensationId = compensationId;

            this.currentCompensationToken = new Variable <CompensationToken>();

            DefaultCompensation = new DefaultCompensation()
            {
                Target = new InArgument <CompensationToken>(this.currentCompensationToken),
            };

            DefaultConfirmation = new DefaultConfirmation()
            {
                Target = new InArgument <CompensationToken>(this.currentCompensationToken),
            };
        }
        public CompensationParticipant(Variable<long> compensationId)
            : base()
        {
            this.compensationId = compensationId;

            this.currentCompensationToken = new Variable<CompensationToken>();

            DefaultCompensation = new DefaultCompensation()
                {
                    Target = new InArgument<CompensationToken>(this.currentCompensationToken),
                };

            DefaultConfirmation = new DefaultConfirmation()
                {
                    Target = new InArgument<CompensationToken>(this.currentCompensationToken),
                };
        }
        public WorkflowCompensationBehavior()
            : base()
        {
            currentCompensationToken = new Variable<CompensationToken>
                {
                    Name = "currentCompensationToken",
                };

            DefaultCompensation = new DefaultCompensation()
                {
                    Target = new InArgument<CompensationToken>(this.currentCompensationToken),
                };

            DefaultConfirmation = new DefaultConfirmation()
                {
                    Target = new InArgument<CompensationToken>(this.currentCompensationToken),
                };
        }
        public WorkflowCompensationBehavior()
            : base()
        {
            currentCompensationToken = new Variable <CompensationToken>
            {
                Name = "currentCompensationToken",
            };

            DefaultCompensation = new DefaultCompensation()
            {
                Target = new InArgument <CompensationToken>(this.currentCompensationToken),
            };

            DefaultConfirmation = new DefaultConfirmation()
            {
                Target = new InArgument <CompensationToken>(this.currentCompensationToken),
            };
        }