Exemple #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUpRuntimeData()
        public virtual void setUpRuntimeData()
        {
            runtimeServiceMock = mock(typeof(RuntimeServiceImpl));

            when(runtimeServiceMock.getVariableTyped(eq(EXAMPLE_PROCESS_INSTANCE_ID), eq(EXAMPLE_VARIABLE_KEY), eq(true))).thenReturn(Variables.dateValue(testDate));

            when(processEngine.RuntimeService).thenReturn(runtimeServiceMock);
        }
Exemple #2
0
        private IncidentQuery setupMockIncidentQuery(IList <Incident> incidents)
        {
            IncidentQuery sampleQuery = mock(typeof(IncidentQuery));

            when(sampleQuery.incidentId(anyString())).thenReturn(sampleQuery);
            when(sampleQuery.singleResult()).thenReturn(mock(typeof(Incident)));

            mockRuntimeService = mock(typeof(RuntimeServiceImpl));
            when(processEngine.RuntimeService).thenReturn(mockRuntimeService);
            when(mockRuntimeService.createIncidentQuery()).thenReturn(sampleQuery);

            return(sampleQuery);
        }
Exemple #3
0
 public ProcessInstanceBuilderImpl(RuntimeServiceImpl runtimeService)
 {
     this.runtimeService = runtimeService;
 }
Exemple #4
0
        protected internal override void updateVariableEntities(VariableMap modifications, IList <string> deletions)
        {
            RuntimeServiceImpl runtimeService = (RuntimeServiceImpl)engine.RuntimeService;

            runtimeService.updateVariables(resourceId, modifications, deletions);
        }