This object is in archive! 
Under Consideration

bizagi Scripting Booleans false gateway not working

I have add expression on gateway to control the flow and expecting true or false. I have tested code in CHelper.ThrowValidationError("CheckStatus "+CheckStatus); and so I know this is returning either true or false. If is true then it worked but if return false I get error

unable to process the case: Failed to convert parameter value from a String to a Int32

here is my code where CheckStatus is defined in variable as boolean with default value to false

CheckStatus = Me.Case.WorkingCredential.IsInRole("SENIORTUTOR");

if(CheckStatus!= true || CheckStatus!=false)

{

CheckStatus = false;

}

CheckStatus;

I have pull out information from trace if it does make sense

#Fields: date time session level module submodule message

2016-07-20 08:41:36.712 None INFO WORKFLOW------------ -------------------- BEGIN: Create Process Instance

2016-07-20 08:41:36.748 None INFO WORKFLOW------------ -------------------- Begin transaction

2016-07-20 08:41:36.748 None INFO WORKFLOW------------ -------------------- Get Process Definition

2016-07-20 08:41:36.951 None INFO WORKFLOW------------ -------------------- Create Process: 9801

2016-07-20 08:41:36.967 None INFO WORKFLOW------------ -------------------- Set case scope checkPoint

2016-07-20 08:41:37.166 None INFO WORKFLOW------------ -------------------- BEGIN: Executing task id=36 Name=WeeksAbsenceIdentified DisplayName=2 Weeks absence identified on EventTypeOnEnter

2016-07-20 08:41:37.206 None INFO WORKFLOW------------ -------------------- Executing transition id=54 Name=Connector32 DisplayName=

2016-07-20 08:41:37.212 None INFO WORKFLOW------------ -------------------- BEGIN: Executing task id=36 Name=WeeksAbsenceIdentified DisplayName=2 Weeks absence identified on EventTypeOnExit

2016-07-20 08:41:37.212 None INFO WORKFLOW------------ -------------------- END

2016-07-20 08:41:37.252 None INFO RULES--------------- -------------------- START EXECUTING RULE ValidateCurrentUser, ID 10004

2016-07-20 08:41:37.598 None INFO RULES--------------- -------------------- END EXECUTING RULE ValidateCurrentUser, ID 10004

2016-07-20 08:41:37.599 None INFO RULES--------------- -------------------- START EXECUTING RULE InitializeCaseInformation, ID 10011

2016-07-20 08:41:38.574 None INFO RULES--------------- -------------------- END EXECUTING RULE InitializeCaseInformation, ID 10011

2016-07-20 08:41:38.583 None INFO RULES--------------- -------------------- START EXECUTING RULE True, ID 1000

2016-07-20 08:41:38.587 None INFO RULES--------------- -------------------- END EXECUTING RULE True, ID 1000

2016-07-20 08:41:38.587 None INFO WORKFLOW------------ -------------------- Executing transition id=55 Name=Connector47 DisplayName=

2016-07-20 08:41:38.623 None INFO WORKFLOW------------ ASSIGNMENT----------

2016-07-20 08:41:38.695 None INFO WORKFLOW------------ -------------------- END

2016-07-20 08:41:38.756 None INFO WORKFLOW------------ -------------------- Commit data

2016-07-20 08:41:38.808 None INFO WORKFLOW------------ -------------------- Commit transaction

2016-07-20 08:41:38.809 None INFO WORKFLOW------------ -------------------- END

2016-07-20 08:41:52.571 None INFO WORKFLOW------------ -------------------- BEGIN: CWorkflowManager.internal_doWorkItemById :: WorkItemId=9803 - ProcId=9801 - User=-3

2016-07-20 08:41:52.571 None INFO WORKFLOW------------ -------------------- internal_doWorkItemById :: preOperationLoad

2016-07-20 08:41:52.571 None INFO WORKFLOW------------ -------------------- internal_doWorkItemById :: beginTransaction

2016-07-20 08:41:52.572 None INFO WORKFLOW------------ -------------------- internal_doWorkItemById :: CProcessManager.getProcessInstance

2016-07-20 08:41:52.572 None INFO WORKFLOW------------ -------------------- internal_doWorkItemById :: checkForProcessActivation

2016-07-20 08:41:52.572 None INFO WORKFLOW------------ -------------------- internal_doWorkItemById :: process.persistProcess

2016-07-20 08:41:52.572 None INFO WORKFLOW------------ -------------------- internal_doWorkItemById :: process.ProcessState=Running

2016-07-20 08:41:52.572 None INFO WORKFLOW------------ -------------------- internal_doWorkItemById :: process.doWorkItemById(iWorkItemId, appEntity, alTransitionIds)

2016-07-20 08:41:52.574 None INFO WORKFLOW------------ -------------------- activating workitem

2016-07-20 08:41:52.577 None INFO RULES--------------- -------------------- START EXECUTING RULE True, ID 1000

2016-07-20 08:41:52.578 None INFO RULES--------------- -------------------- END EXECUTING RULE True, ID 1000

2016-07-20 08:41:52.578 None INFO WORKFLOW------------ -------------------- Executing transition id=40 Name=Connector33 DisplayName=

2016-07-20 08:41:52.652 None INFO RULES--------------- -------------------- START EXECUTING RULE True, ID 1000

2016-07-20 08:41:52.653 None INFO RULES--------------- -------------------- END EXECUTING RULE True, ID 1000

2016-07-20 08:41:52.653 None INFO WORKFLOW------------ -------------------- Executing transition id=1 Name=Connector1 DisplayName=

2016-07-20 08:41:52.656 None INFO WORKFLOW------------ -------------------- BEGIN: Executing task id=26 Name=WithdrawAndRetain DisplayName=Withdraw and retain on EventTypeOnEnter

2016-07-20 08:41:52.661 None INFO WORKFLOW------------ -------------------- Executing transition id=29 Name=Connector22 DisplayName=

2016-07-20 08:41:52.662 None INFO WORKFLOW------------ -------------------- BEGIN: Executing task id=26 Name=WithdrawAndRetain DisplayName=Withdraw and retain on EventTypeOnExit

2016-07-20 08:41:52.662 None INFO WORKFLOW------------ -------------------- END

2016-07-20 08:41:52.667 None INFO WORKFLOW------------ ASSIGNMENT----------

2016-07-20 08:41:52.672 None INFO WORKFLOW------------ -------------------- Executing transition id=30 Name=Connector23 DisplayName=

2016-07-20 08:41:52.675 None INFO WORKFLOW------------ -------------------- BEGIN: Executing task id=15 Name=TutorInitiated DisplayName=Tutor initiated? on EventTypeOnEnter

2016-07-20 08:41:52.685 None INFO RULES--------------- -------------------- START EXECUTING RULE IsUserInRoleSeniorTutor, ID 10013

2016-07-20 08:41:52.687 None INFO RULES--------------- -------------------- END EXECUTING RULE IsUserInRoleSeniorTutor, ID 10013

2016-07-20 08:41:52.687 None INFO RULES--------------- -------------------- START EXECUTING RULE False, ID 0

2016-07-20 08:41:52.687 None INFO RULES--------------- -------------------- END EXECUTING RULE False, ID 0

2016-07-20 08:41:52.687 None INFO WORKFLOW------------ -------------------- Executing transition id=15 Name=No DisplayName=No

2016-07-20 08:41:52.687 None INFO WORKFLOW------------ -------------------- BEGIN: Executing task id=15 Name=TutorInitiated DisplayName=Tutor initiated? on EventTypeOnExit

2016-07-20 08:41:52.688 None INFO WORKFLOW------------ -------------------- END

2016-07-20 08:41:52.694 None INFO RULES--------------- -------------------- START EXECUTING RULE True, ID 1000

2016-07-20 08:41:52.695 None INFO RULES--------------- -------------------- END EXECUTING RULE True, ID 1000

2016-07-20 08:41:52.695 None INFO WORKFLOW------------ -------------------- Executing transition id=6 Name=Connector5 DisplayName=

2016-07-20 08:41:52.699 None INFO RULES--------------- -------------------- START EXECUTING RULE True, ID 1000

2016-07-20 08:41:52.700 None INFO RULES--------------- -------------------- END EXECUTING RULE True, ID 1000

2016-07-20 08:41:52.731 None INFO WORKFLOW------------ -------------------- END

2016-07-20 08:41:52.731 None INFO WORKFLOW------------ -------------------- END

2016-07-20 08:41:52.740 None INFO WORKFLOW------------ -------------------- END

2016-07-20 08:41:52.745 None ERROR RENDER-------------- -------------------- Unable to process the case:Failed to convert parameter value from a String to a Int32.: at Vision.Trace.Tracer.TraceError(String message)

at BizAgi.Render.JQuery.Controllers.Controller.ProcessRequest(BizAgiRenderContext renderContext)

at BizAgi.Web.Services.AshxRedirection.MultiAction.MultiActionAshxHandler.ProcessSingleAction(JToken token, HttpContext context, Boolean& bContainsValidations)

at BizAgi.Web.Services.AshxRedirection.MultiAction.MultiActionAshxHandler.InternalProcessRequest(HttpContext context)

at BizAgi.Web.Services.AshxRedirection.MultiAction.MultiActionAshxHandler.ProcessRequest(HttpContext context)

at Bizagi.Web.RestServices.Framework.AshxRedirection.AshxResources.Implementation.AshxServicesResourcesManager.<>c__DisplayClass2.<GetAshxHandlerForRequest>b__1()

at Castle.Proxies.Invocations.IRestServicesHandler_ProcessRequest.InvokeMethodOnTarget()

at Castle.Proxies.IRestServicesHandlerProxy.ProcessRequest(HttpRequestModel requestModel)

at BizAgiBPM.Rest.RestServicesHttpHandler.DoRequest(HttpContext context, Boolean isCloseService)

at BizAgiBPM.Rest.BaseHandlerController.InternalProcessRequest(HttpContext context)

at BizAgiBPM.Rest.BaseHandlerController.ProcessRequest(HttpContext context)

at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)

at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)

at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)

at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)

at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)

at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)