Example #1
0
class WorkflowLockingModule(Document):
    doc_type = TextField(default='workflow_locking_module')
    workflow_id = TextField()
    next_module_id = IntegerField(default=1)
    module_nodes = ListField(
        DictField(
            Mapping.build(nodeID=TextField(),
                          isLocked=BooleanField(),
                          currentOwner=TextField())))
    node_access_req_Q = ListField(
        DictField(Mapping.build(nodeID=TextField(), requestedBy=TextField())))
Example #2
0
class CodeClones(Document):
	

	clone_id = TextField()
	tool = DictField(Mapping.build(id=TextField(),name=TextField()))
	system = DictField(Mapping.build(
		id=TextField(),
		name=TextField()
	))
	fragment_1 = DictField(Mapping.build(
		path=TextField(),
		start_line=TextField(),
		end_line=TextField()
	))
	fragment_2 = DictField(Mapping.build(
		path=TextField(),
		start_line=TextField(),
		end_line=TextField()
	))
	auto_validation_result = ListField(DictField(Mapping.build(
		algorithm = TextField(),
		result = TextField()
	)))
	is_validated_by_any_user = TextField(default='no')
	is_clone_doc = TextField(default='yes')
	user_validation_result = ListField(DictField(Mapping.build(
		user = TextField(),
		result = TextField()
	)))