Beispiel #1
0
        protected internal virtual void createJobDefinitionOperationLogEntry(UserOperationLogContext opLogContext, long?previousPriority, JobDefinitionEntity jobDefinition)
        {
            PropertyChange propertyChange = new PropertyChange(JOB_DEFINITION_OVERRIDING_PRIORITY, previousPriority, jobDefinition.OverridingJobPriority);

            UserOperationLogContextEntry entry = UserOperationLogContextEntryBuilder.entry(org.camunda.bpm.engine.history.UserOperationLogEntry_Fields.OPERATION_TYPE_SET_PRIORITY, EntityTypes.JOB_DEFINITION).inContextOf(jobDefinition).propertyChanges(propertyChange).category(org.camunda.bpm.engine.history.UserOperationLogEntry_Fields.CATEGORY_OPERATOR).create();

            opLogContext.addEntry(entry);
        }
Beispiel #2
0
        protected internal virtual void createCascadeJobsOperationLogEntry(UserOperationLogContext opLogContext, JobDefinitionEntity jobDefinition)
        {
            // old value is unknown
            PropertyChange propertyChange = new PropertyChange(SetJobPriorityCmd.JOB_PRIORITY_PROPERTY, null, jobDefinition.OverridingJobPriority);

            UserOperationLogContextEntry entry = UserOperationLogContextEntryBuilder.entry(org.camunda.bpm.engine.history.UserOperationLogEntry_Fields.OPERATION_TYPE_SET_PRIORITY, EntityTypes.JOB).inContextOf(jobDefinition).propertyChanges(propertyChange).category(org.camunda.bpm.engine.history.UserOperationLogEntry_Fields.CATEGORY_OPERATOR).create();

            opLogContext.addEntry(entry);
        }
Beispiel #3
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET:
//ORIGINAL LINE: public Void execute(final org.camunda.bpm.engine.impl.interceptor.CommandContext commandContext)
            public Void execute(CommandContext commandContext)
            {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.engine.impl.oplog.UserOperationLogContext userOperationLogContext = new org.camunda.bpm.engine.impl.oplog.UserOperationLogContext();
                UserOperationLogContext userOperationLogContext = new UserOperationLogContext();

                userOperationLogContext.UserId = "kermit";

//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.engine.impl.oplog.UserOperationLogContextEntry entry = new org.camunda.bpm.engine.impl.oplog.UserOperationLogContextEntry("foo", "bar");
                UserOperationLogContextEntry entry = new UserOperationLogContextEntry("foo", "bar");

                entry.PropertyChanges = Arrays.asList(new PropertyChange(null, null, null));
                entry.TaskId          = TASK_ID;
                userOperationLogContext.addEntry(entry);

                commandContext.OperationLogManager.logUserOperations(userOperationLogContext);
                return(null);
            }