extension/storage/storage-mongodb/src/main/java/com/alibaba/smart/framework/engine/persister/mongo/service/MongoActivityInstanceStorage.java [124:131]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        MongoTemplate mongoTemplate =  (MongoTemplate)processEngineConfiguration.getInstanceAccessor().access(MONGO_TEMPLATE);
        TableSchemaStrategy tableSchemaStrategy = processEngineConfiguration.getTableSchemaStrategy();
        String collectionName = tableSchemaStrategy.getTableSchemaFormatter(INSTANCE);

        Query query = new Query();
        query.addCriteria(Criteria.where(PROCESS_INSTANCE_ID).is(processInstanceId));
        //这个地方存在逻辑不一致性, MySQL采用了按创建日期倒序，MongDB采用了按创建日期正序
        query.with( Sort.by(Sort.Direction.ASC, GMT_CREATE));
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



extension/storage/storage-mongodb/src/main/java/com/alibaba/smart/framework/engine/persister/mongo/service/MongoExecutionInstanceStorage.java [171:178]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        MongoTemplate mongoTemplate =  (MongoTemplate)processEngineConfiguration.getInstanceAccessor().access(MONGO_TEMPLATE);
        TableSchemaStrategy tableSchemaStrategy = processEngineConfiguration.getTableSchemaStrategy();
        String collectionName = tableSchemaStrategy.getTableSchemaFormatter(INSTANCE);

        Query query = new Query();
        query.addCriteria(Criteria.where(PROCESS_INSTANCE_ID).is(processInstanceId));

        query.with( Sort.by(Sort.Direction.ASC, GMT_CREATE));
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



