def action(jobject, dynamoJObject): prevRunTypeJValue = dynamoJObject[DYNAMO_RUNTYPE_ATTRIBUTE] prevRunType = json_util.GetValueFromJValue(prevRunTypeJValue) dynamoJObject[DYNAMO_RUNTYPE_ATTRIBUTE] = runType dynamoHasRunWithoutCrashJValue = dynamoJObject[ DYNAMO_HAS_RUN_WITHOUT_CRASH_ATTRIBUTE] if dynamoHasRunWithoutCrashJValue is not None: dynamoJObject[DYNAMO_HAS_RUN_WITHOUT_CRASH_ATTRIBUTE] = True return prevRunType
def action(jobject, dynamoJObject): hasRunWithoutCrashJValue = dynamoJObject[ DYNAMO_HAS_RUN_WITHOUT_CRASH_ATTRIBUTE] hasRunWithoutCrash = json_util.GetValueFromJValue( hasRunWithoutCrashJValue) return hasRunWithoutCrash
def action(jobject, dynamoJObject): runTypeJValue = dynamoJObject[DYNAMO_RUNTYPE_ATTRIBUTE] runType = json_util.GetValueFromJValue(runTypeJValue) return runType
def GetRevitProcessIds(testModeData): return [ json_util.GetValueFromJValue(revitProcessId) for revitProcessId in testModeData[TEST_MODE_DATA__REVIT_PROCESS_IDS] ]
def GetSessionId(testModeData): return json_util.GetValueFromJValue( testModeData[TEST_MODE_DATA__SESSION_ID])