Example #1
0
        protected override void Execute(CodeActivityContext context)
        {
            // TODO: VALIDATE ENTITY OR THROW EXCEPTION


            Workflows.UserInteractions.Request.ContactEntityRequest request = new UserInteractions.Request.ContactEntityRequest(

                Entity.Get(context),

                RelatedEntity.Get(context),

                RegardingMessage.Get(context),

                IntroductionScript.Get(context)

                );


            request.AllowEditRelatedEntity = AllowEditRelatedEntity.Get(context);

            request.AllowEditContactDateTime = AllowEditContactDateTime.Get(context);

            request.AllowEditRegarding = AllowEditRegarding.Get(context);

            request.AllowCancel = AllowCancel.Get(context);


            UserInteractionRequest.Set(context, request);

            return;
        }
        protected override void Execute(CodeActivityContext context)
        {
            // TODO: VALIDATE ENTITY OR THROW EXCEPTION


            Workflows.UserInteractions.Request.SendCorrespondenceRequest request = new UserInteractions.Request.SendCorrespondenceRequest(

                Entity.Get(context),

                RelatedEntity.Get(context),

                WorkflowManager.Get(context).Application.CorrespondenceGetIdByName(CorrespondenceName.Get(context)),


                AllowUserSelection.Get(context),

                AllowAlternateAddress.Get(context)

                );



            request.AllowCancel = AllowCancel.Get(context);

            request.Attention = Attention.Get(context);

            request.AllowEditRelatedEntity = AllowEditRelatedEntity.Get(context);

            request.AllowHistoricalSendDate = AllowHistoricalSendDate.Get(context);

            request.AllowFutureSendDate = AllowFutureSendDate.Get(context);

            request.AllowSendByFacsimile = AllowSendByFacsimile.Get(context);

            request.AllowSendByEmail = AllowSendByEmail.Get(context);

            request.AllowSendByInPerson = AllowSendByInPerson.Get(context);

            request.SendDate = SendDate.Get(context);

            request.AlternateAddress = AlternateAddress.Get(context);

            request.AlternateFaxNumber = AlternateFaxNumber.Get(context);

            request.AlternateEmail = AlternateEmail.Get(context);


            UserInteractionRequest.Set(context, request);

            return;
        }