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),
            };
        }
Exemple #2
0
        public WorkflowCompensationBehavior()
            : base()
        {
            _currentCompensationToken = new Variable <CompensationToken>
            {
                Name = "currentCompensationToken",
            };

            DefaultCompensation = new DefaultCompensation()
            {
                Target = new InArgument <CompensationToken>(_currentCompensationToken),
            };

            DefaultConfirmation = new DefaultConfirmation()
            {
                Target = new InArgument <CompensationToken>(_currentCompensationToken),
            };
        }