Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to retreive contents ?

Avatar

Avatar
Validate 1
Level 1
flexriver
Level 1

Likes

0 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
flexriver
Level 1

Likes

0 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
flexriver
Level 1

31-03-2009

We have used with most of the services available in the workbench but we are still not able to implement the following use case.



1- Store a document into the Content management system, along with custom attributes (example: attach the "myAttribute"--->"toto" metatag to somedoc.pdf). We are only able to add pre-defined attributes from the accepted list.



2- And, then how to retrieve this content using that metatag. We are able to retrieve the document using the name of the doc, but not a metatag.



Can you confirm that this is indeed a feature of LC Content Management ? And that you can achieve that just by using the services already pre-defined in the workbench??

Replies

Avatar

Avatar
Level 1
wisi11
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
wisi11
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile
wisi11
Level 1

01-04-2009

1:

You have to create a new Alfresco model where you can define your own attributes. Or you extend existing an model with your attribute.



2:

IMHO this is not directly possible yet. In a former post in this forum somebody mentioned that a service to search for content is in development. But this post was from mid summer 08...

Avatar

01-04-2009

> In your orchestration, create a new variable of type map


> Introduce a set value operation which assigns map[@id=myAttribute] = toto

> In your store Content operation property editor, in attributes map argument, select Variable or XPath instead of Literal and pass this map variable.

> NOTE : You can also call a separate set Content Attributes operation in case you want to make use of pre-defined attributes also

> NOTE : Dont worry about passing a single attribute in attributes map it doesnt flush out other existing attributes, only over-writes what we pass in the map.



> Future releases will have searchRepository operation in which you can specify queries to find a document (i.e. it returns a node ID) you can search on basis of attribute values (exact or range or other conditions)

Avatar

Avatar
Level 1
wisi11
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
wisi11
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile
wisi11
Level 1

01-04-2009

Can you say when this future release would be released?

Avatar

Avatar
Level 1
IngGrin
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
IngGrin
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile
IngGrin
Level 1

22-10-2009

Hello,

is there something in progress so that custom attributes can used in queries (LC CS 8.2)?

For me it is important to retrieve all documents too, for instance for documents having a metattribute custom_id set to "12345" ... the attributes are built on a custom model.

Regards